summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2000-03-29 16:17:37 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2000-03-29 16:17:37 +0000
commit0d421b5c3935077e2fc502f561d7861126e6fdeb (patch)
tree061931ce4d7a5beb2b2d81b22731afd0c32d8b45 /src/reqs.c
parent85a7ebdacbb766ed8e13f8930898a88015535863 (diff)
Fixed a bug with the clientreq function which was incorrectly setting the
clientheader flag and causing _all_ headers to be sent even in anonymous mode.
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reqs.c b/src/reqs.c
index d7c5227..888fb2d 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1,4 +1,4 @@
-/* $Id: reqs.c,v 1.4 2000-03-28 16:41:45 rjkaes Exp $
+/* $Id: reqs.c,v 1.5 2000-03-29 16:17:37 rjkaes Exp $
*
* This is where all the work in tinyproxy is actually done. Incoming
* connections are added to the active list of connections and then the header
@@ -287,7 +287,7 @@ static int clientreq(struct conn_s *connptr)
* through, the POST will not work. This _definitely_ needs to be
* fixed. - rjkaes
*/
- if (!xstrstr(inbuf, "POST ", 5, FALSE)) {
+ if (xstrstr(inbuf, "POST ", 5, FALSE)) {
connptr->clientheader = TRUE;
}
@@ -371,10 +371,12 @@ static int anonheader(char *line)
assert(line);
assert(allowedhdrs);
+ /*
if (!xstrstr(line, "GET ", 4, FALSE)
|| !xstrstr(line, "POST ", 5, FALSE)
|| !xstrstr(line, "HEAD ", 5, FALSE))
return 1;
+ */
for (allowedptr = allowedhdrs; allowedptr;
allowedptr = allowedptr->next) {