From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 31 Mar 2021 06:54:47 +0000 (+0200)
Subject: remove_chunked_transfer_coding(): Improve two log messages
X-Git-Tag: v_3_0_34~144
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/static/user-manual/@default-cgi@show-status?a=commitdiff_plain;h=9f13f4b9706b231be792217dabc67adb702eb2ad;p=privoxy.git

remove_chunked_transfer_coding(): Improve two log messages
---

diff --git a/filters.c b/filters.c
index ab200384..07830c3d 100644
--- a/filters.c
+++ b/filters.c
@@ -2180,7 +2180,9 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size)
        */
       if (NULL == (from_p = strstr(from_p, "\r\n")))
       {
-         log_error(LOG_LEVEL_ERROR, "Parse error while stripping \"chunked\" transfer coding");
+         log_error(LOG_LEVEL_ERROR,
+            "Failed to strip \"chunked\" transfer coding. "
+            "Line with chunk size doesn't seem to end properly.");
          return JB_ERR_PARSE;
       }
       from_p += 2;
@@ -2195,7 +2197,8 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size)
       if (from_p + chunksize >= end_of_buffer)
       {
          log_error(LOG_LEVEL_ERROR,
-            "End of chunk is beyond the end of the buffer.");
+            "Failed to decode content for filtering. "
+            "One chunk end is beyond the end of the buffer.");
          return JB_ERR_PARSE;
       }