benjamin-bader / amanuensis

ah - MAN - you - EN - sis: Web Traffic Inspector
GNU General Public License v3.0
2 stars 0 forks source link

Accept zero-prefixed chunk lengths #24

Closed benjamin-bader closed 6 years ago

benjamin-bader commented 6 years ago

Our Transfer-Encoding: chunked implementation was not actually correct, and as a consequence was not robust to servers that improperly add leading zeroes to chunk lengths. This is fixed here by more closely conforming to the RFC spec ourselves, and removing a few parse states that don't match the BNF defined there.

Fixes #23.