[Privoxy-commits] [privoxy] 14/15: normalize_lws(): Only log the 'Reducing whitespace ...' message once per header
User Git
git at git.privoxy.org
Thu Oct 10 06:48:04 CEST 2024
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit cdcb2605730e5664879773558f279251d6a0075d
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sun Sep 8 13:32:35 2024 +0200
normalize_lws(): Only log the 'Reducing whitespace ...' message once per header
---
parsers.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/parsers.c b/parsers.c
index 1cb46dfe..a14f970d 100644
--- a/parsers.c
+++ b/parsers.c
@@ -903,6 +903,7 @@ jb_err decompress_iob(struct client_state *csp)
static void normalize_lws(char *header)
{
char *p = header;
+ int reducing_white_space_message_logged = 0;
while (*p != '\0')
{
@@ -914,7 +915,11 @@ static void normalize_lws(char *header)
{
q++;
}
- log_error(LOG_LEVEL_HEADER, "Reducing whitespace in '%s'", header);
+ if (!reducing_white_space_message_logged)
+ {
+ log_error(LOG_LEVEL_HEADER, "Reducing whitespace in '%s'", header);
+ reducing_white_space_message_logged = 1;
+ }
string_move(p+1, q);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list