http/httpguts: reject leading and trailing spaces in field values#237
http/httpguts: reject leading and trailing spaces in field values#237DemiMarie wants to merge 1 commit intogolang:masterfrom
Conversation
|
This PR (HEAD: b9a4ca9) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/net/+/665175. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/665175. |
b9a4ca9 to
27695fa
Compare
|
This PR (HEAD: 27695fa) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/net/+/665175. Important tips:
|
RFC9113 is extremely clear about this: > A field value MUST NOT start or end with an ASCII whitespace character > (ASCII SP or HTAB, 0x20 or 0x09). RFC9114 defers to RFC9110, which in turn provides a grammer that does not permit leading and/or trailing whitespace either.
|
Message from Damien Neil: Patch Set 2: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/665175. |
|
Message from Demi Obenour: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/665175. |
RFC9113 is extremely clear about this:
RFC9114 defers to RFC9110, which in turn provides a grammer that does not permit leading and/or trailing whitespace either.