feat(http1): implement obsolete line folding (#2734)

The client now has an option to allow parsing responses with obsolete line folding in headers. The option is off by default, since the spec recommends to reject such things if you can.
This commit is contained in:
Anthony Ramine
2022-02-09 21:59:23 +01:00
committed by GitHub
parent 5ec094caa5
commit 1f0c177b35
5 changed files with 156 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ futures-util = { version = "0.3", default-features = false }
http = "0.2"
http-body = "0.4"
httpdate = "1.0"
httparse = "1.5.1"
httparse = "1.6"
h2 = { version = "0.3.9", optional = true }
itoa = "1"
tracing = { version = "0.1", default-features = false, features = ["std"] }