Fix: Allows headers without whitespace after colon.#1741
Conversation
|
It will likely be faster to split using a regex than calling split 2 times. |
|
The performance will be the same in this case for 'well formed' headers, but worse for non-well formed headers. I think this could actually be made faster though by scanning for the colon in c and then calling |
|
I rewrote the header splitting to ignore all whitespaces after ':', it will now also directly allocate key and value from the This is a bit faster than Test with |
|
Good one! Thanks. |
Fixes #1738
rfc7230 apparently doesn't explicitly disallow headers without a whitespace after the colon.
This PR allows both ways of calling the PHP ´header` function, since apparently FPM/nginx also allows them: