projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fb201b
)
remove_chunked_transfer_coding(): Improve two log messages
author
Fabian Keil
<fk@fabiankeil.de>
Wed, 31 Mar 2021 06:54:47 +0000
(08:54 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Tue, 29 Mar 2022 14:38:24 +0000
(16:38 +0200)
filters.c
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
ab20038
..
07830c3
100644
(file)
--- 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")))
{
*/
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;
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,
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;
}
return JB_ERR_PARSE;
}