File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4003,17 +4003,20 @@ do_http (POUND_HTTP *phttp)
4003
4003
case HEADER_TRANSFER_ENCODING :
4004
4004
if ((val = http_header_get_value (hdr )) == NULL )
4005
4005
goto err ;
4006
- if (!strcasecmp ("chunked" , val ))
4007
- chunked = 1 ;
4008
- else
4006
+ if (chunked )
4009
4007
{
4010
4008
logmsg (LOG_NOTICE ,
4011
- "(%" PRItid ") e400 multiple Transfer-encoding \"%s\" from %s" ,
4009
+ "(%" PRItid ") e400 multiple Transfer-encoding: chunked on \"%s\" from %s" ,
4012
4010
POUND_TID (), phttp -> request .url ,
4013
4011
addr2str (caddr , sizeof (caddr ), & phttp -> from_host , 1 ));
4014
4012
http_err_reply (phttp , HTTP_STATUS_BAD_REQUEST );
4015
4013
return ;
4016
4014
}
4015
+ else
4016
+ {
4017
+ if (!strcasecmp ("chunked" , val ))
4018
+ chunked = 1 ;
4019
+ }
4017
4020
break ;
4018
4021
4019
4022
case HEADER_CONTENT_LENGTH :
You can’t perform that action at this time.
0 commit comments