The following Transfer-Encoding header is now rejected with a
400-bad-request:
Transfer-Encoding: chunked,\r\n
This case was not properly handled and the last empty value was just
ignored.
This patch must be backported as far as 2.6.
continue;
n = http_find_hdr_value_end(word.ptr, e); // next comma or end of line
+
+ /* a comma at the end means the last value is empty */
+ if (n+1 == e)
+ goto fail;
word.len = n - word.ptr;
/* trim trailing blanks */