From 433e5bc964858dbd9a5257549146de2b8bd3279f Mon Sep 17 00:00:00 2001 From: oes Date: Tue, 2 Oct 2001 15:32:13 +0000 Subject: [PATCH] Moved generation of hdr --- jcc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jcc.c b/jcc.c index 347f35f4..77b13797 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.41 2001/09/16 17:05:14 jongfoster Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.42 2001/09/21 23:02:02 david__schmidt Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.41 2001/09/16 17:05:14 jongfoster Exp $"; * * Revisions : * $Log: jcc.c,v $ + * Revision 1.42 2001/09/21 23:02:02 david__schmidt + * Cleaning up 2 compiler warnings on OS/2. + * * Revision 1.41 2001/09/16 17:05:14 jongfoster * Removing unused #include showarg.h * @@ -505,7 +508,7 @@ static void chat(struct client_state *csp) csp->force = 0; } #endif /* def FEATURE_FORCE_LOAD */ - + parse_http_request(req, http, csp); freez(req); break; @@ -636,9 +639,6 @@ static void chat(struct client_state *csp) /* We have a request. */ - hdr = sed(client_patterns, add_client_headers, csp); - list_remove_all(csp->headers); - /* * Now, check to see if we need to intercept it, i.e. * If @@ -685,7 +685,6 @@ static void chat(struct client_state *csp) /* Clean up and return */ free_http_response(rsp); - freez(hdr); return; } @@ -736,12 +735,13 @@ static void chat(struct client_state *csp) } free_http_response(rsp); - freez(hdr); return; } log_error(LOG_LEVEL_CONNECT, "OK"); + hdr = sed(client_patterns, add_client_headers, csp); + if (fwd->forward_host || (http->ssl == 0)) { /* write the client's (modified) header to the server -- 2.39.2