Fix bugs and make improvements

- Fix regression with `%lu`
- Added some more headers witnessed in the wild
- Added `-M INT` option to redbean to tune max payload size
- Work around InfoZIP 256 character limit on comment line size
This commit is contained in:
Justine Tunney 2021-05-01 05:11:35 -07:00
parent 3aa8983ec1
commit 1966369e8e
17 changed files with 574 additions and 415 deletions

View file

@ -269,9 +269,10 @@ static char *ParseUrlImpl(const char *data, size_t size, struct Url *h,
* Parses URL.
*
* This parser is charset agnostic. Percent encoded bytes are decoded
* for all fields. Returned values might contain things like NUL
* characters, spaces, control codes, and non-canonical encodings.
* Absent can be discerned from empty by checking if the pointer is set.
* for all fields (with the exception of scheme). Returned values might
* contain things like NUL characters, spaces, control codes, and
* non-canonical encodings. Absent can be discerned from empty by
* checking if the pointer is set.
*
* There's no failure condition for this routine. This is a permissive
* parser. This doesn't normalize path segments like `.` or `..` so use