4 ms·
I feel like this bug should be solved by using a proper parsing, instead of greedily looking for a field...
by Jaxan 7y ago
I feel like this bug should be solved by using a proper parsing, instead of greedily looking for a field...
- homero 7y agoHeaders are just text mixed with body and hard to figure out where they stop
- speps 7y agoHeaders 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.1 https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4....
- londons_explore 7y agoEasy. They stop after \r\n\r\n. There is no other RFC compliant way to end headers.