From 57c0ed98a4767d8d7bc3adcd184d9c2e027512a1 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 17 Oct 2007 19:31:20 +0000 Subject: [PATCH] Omitting the zero chunk that ends the chunk transfer encoding seems to be the new black. Log the problem and continue filtering anyway. --- filters.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/filters.c b/filters.c index a28fbd89..a8642389 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.93 2007/09/29 10:21:16 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.94 2007/09/29 13:20:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -40,6 +40,9 @@ const char filters_rcs[] = "$Id: filters.c,v 1.93 2007/09/29 10:21:16 fabiankeil * * Revisions : * $Log: filters.c,v $ + * Revision 1.94 2007/09/29 13:20:20 fabiankeil + * Remove two redundant and one useless log messages. + * * Revision 1.93 2007/09/29 10:21:16 fabiankeil * - Move get_filter_function() from jcc.c to filters.c * so the filter functions can be static. @@ -2182,8 +2185,8 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size) if (sscanf(from_p, "%x", &chunksize) != 1) { - log_error(LOG_LEVEL_ERROR, "Parse error while stripping \"chunked\" transfer coding"); - return JB_ERR_PARSE; + log_error(LOG_LEVEL_INFO, "Invalid \"chunked\" transfer encoding detected and ignored."); + break; } } @@ -2301,7 +2304,6 @@ char *execute_content_filter(struct client_state *csp, filter_function_ptr conte { /* * failed to de-chunk or decompress. - * XXX: if possible, we should continue anyway. */ return NULL; } -- 2.39.2