summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* Add failing test for header size calculationBert JW Regeer2022-04-211-0/+12
|
* Update tests to remove invalid chunked encoding chunk-sizeBert JW Regeer2022-03-121-1/+1
| | | | | | | | | | | | | | | RFC7230 states the following: chunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF chunk-size = 1*HEXDIG Where chunk-ext is: chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] ) Only if there is a chunk-ext should there be a `;` after the 1*HEXDIG. And a chunk-ext that is empty is invalid.
* Be more strict in parsing Content-LengthBert JW Regeer2022-03-121-0/+20
| | | | | | | | | Validate that we are only parsing digits and nothing else. RFC7230 is explicit in that the Content-Length can only exist of 1*DIGIT and may not include any additional sign information. The Python int() function parses `+10` as `10` which means we were more lenient than the standard intended.
* Add REMOTE_URI to the WSGI environ.Shane Hathaway2021-05-111-0/+5
| | | | CHANGES.txt entry included.
* Black formatting updateBert JW Regeer2020-09-071-2/+11
|
* Reduce compat.py to minimum sizeBert JW Regeer2020-08-161-74/+30
|
* Add isort to the projectBert JW Regeer2020-08-151-2/+2
|
* Remove object from class definitionBert JW Regeer2020-08-151-1/+1
|
* Move tests to top directoryBert JW Regeer2020-04-161-0/+732