diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-04 18:22:00 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-04 18:22:00 +0000 |
commit | c937858ec1ed3dca40f30e9cdd413814d8bf5363 (patch) | |
tree | c7220c21b9dba0e3132f77804f076c28a437299d | |
parent | 667b9d5d5316c05955adf96132117cd276b58020 (diff) | |
download | tinyproxy-c937858ec1ed3dca40f30e9cdd413814d8bf5363.tar.gz tinyproxy-c937858ec1ed3dca40f30e9cdd413814d8bf5363.zip |
Moved the compare_header() test after the skip header test.
Diffstat (limited to '')
-rw-r--r-- | src/reqs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: reqs.c,v 1.18 2001-08-30 16:51:10 rjkaes Exp $ +/* $Id: reqs.c,v 1.19 2001-09-04 18:22:00 rjkaes Exp $ * * This is where all the work in tinyproxy is actually done. Incoming * connections have a new thread created for them. The thread then @@ -424,9 +424,6 @@ static int process_client_headers(struct conn_s *connptr) if (connptr->output_message) continue; - if (is_anonymous_enabled() && compare_header(header) < 0) - continue; - /* * Don't send certain headers. */ @@ -438,6 +435,9 @@ static int process_client_headers(struct conn_s *connptr) if (i != (sizeof(skipheaders) / sizeof(char *))) continue; + if (is_anonymous_enabled() && compare_header(header) < 0) + continue; + if (content_length == -1 && strncasecmp(header, "content-length", 14) == 0) { char *content_ptr = strchr(header, ':') + 1; |