diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2000-03-29 16:17:37 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2000-03-29 16:17:37 +0000 |
commit | 0d421b5c3935077e2fc502f561d7861126e6fdeb (patch) | |
tree | 061931ce4d7a5beb2b2d81b22731afd0c32d8b45 /src | |
parent | 85a7ebdacbb766ed8e13f8930898a88015535863 (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')
-rw-r--r-- | src/reqs.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |