summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-04 18:22:00 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-04 18:22:00 +0000
commitc937858ec1ed3dca40f30e9cdd413814d8bf5363 (patch)
treec7220c21b9dba0e3132f77804f076c28a437299d
parent667b9d5d5316c05955adf96132117cd276b58020 (diff)
Moved the compare_header() test after the skip header test.
-rw-r--r--src/reqs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reqs.c b/src/reqs.c
index a7dcb4a..7db1b5c 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -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;