diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-11-28 16:48:39 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-29 14:06:05 +0000 |
commit | 5f713f27edadff9702ae486c1f6aa2790be28c97 (patch) | |
tree | f618d2214e7d35c4cfe0182a29f579cf20f1c452 /services | |
parent | 15edc8d714b11dcff3a04e5d00b8db9adfdb81ed (diff) | |
download | wireshark-5f713f27edadff9702ae486c1f6aa2790be28c97.tar.gz |
http: detect multiple names in Transfer-Encoding header
Treat Transfer-Encoding: chunked specially, it is applied as final
encoding and must be stripped first.
Rename the expert info field http.chunkd_and_length (sic) to something
more generic and add a new field for unknown Transfer-Encodings
(implementations should normally send an error response, but we are not
a server so try to be permissive).
Also removed an unnecessary content_length check, it was covered by
have_content_length.
Tested with the weird crafted capture from bug 11801 and a crafted
capture (netcat) which returns Content-Length: 1 and Transfer-Encoding:
bla,chunked.
Bug: 11801
Change-Id: I978bf74e52e70782ebc5153d1017de67f323e514
Reviewed-on: https://code.wireshark.org/review/12256
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'services')
0 files changed, 0 insertions, 0 deletions