Re:I found and fixed a bug in PHP's standard library
by Jaxan on Monday March 02, 2020 @01:23AM
(#22462129)
I feel like this bug should be solved by using a proper parsing, instead of greedily looking for a field...
[ Parent
| on HN ]
Re:I found and fixed a bug in PHP's standard library
by homero on Monday March 02, 2020 @03:02AM
(#22462546)
Headers are just text mixed with body and hard to figure out where they stop
Re:I found and fixed a bug in PHP's standard library
by speps on Monday March 02, 2020 @05:05AM
(#22463093)
Headers stop when you have 2 line endings consecutively[1], I don't see why it's hard.
[1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4....
Re:I found and fixed a bug in PHP's standard library
by londons_explore on Monday March 02, 2020 @05:09AM
(#22463109)
Easy. They stop after \r\n\r\n.
There is no other RFC compliant way to end headers.