Ben Kallus 72238fcf8d RFC compliant request line and header parsing
- Unify HEADER_RE and METH_RE
- Replace CRLF with SP during obs-fold processing (See RFC 9112 Section 5.2, last paragraph)
- Stop stripping header names.
- Remove HTAB in OWS in header values that use obs-fold (See RFC 9112 Section 5.2, last paragraph)
- Use fullmatch instead of search, which has problems with empty strings. (See GHSA-68xg-gqqm-vgj8)
- Split proxy protocol line on space only. (See proxy protocol Section 2.1, bullet 3)
- Use fullmatch for method and version (Thank you to Paul Dorn for noticing this.)
- Replace calls to str.strip() with str.strip(' \t')
- Split request line on SP only.

Co-authored-by: Paul Dorn <pajod@users.noreply.github.com>
2023-12-15 13:33:31 +01:00
..
2012-02-20 09:56:06 +01:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2010-06-03 16:11:18 -04:00
2012-10-24 22:07:35 +02:00
2012-09-27 19:14:40 +02:00
2012-10-24 22:07:35 +02:00
2019-11-18 19:44:01 -05:00
2019-11-18 19:44:01 -05:00
2019-11-18 22:29:02 -05:00
2019-11-18 22:29:02 -05:00
2019-11-18 22:29:02 -05:00
2019-11-18 22:29:02 -05:00
2012-09-27 19:14:40 +02:00
2012-10-24 22:07:35 +02:00
2012-09-27 19:14:40 +02:00
2012-10-24 22:07:35 +02:00