From c937858ec1ed3dca40f30e9cdd413814d8bf5363 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Tue, 4 Sep 2001 18:22:00 +0000 Subject: Moved the compare_header() test after the skip header test. --- src/reqs.c | 8 ++++---- 1 file 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; -- cgit v1.2.3