summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reqs.c')
-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;