fukamachi / woo

A fast non-blocking HTTP server on top of libev
http://ultra.wikia.com/wiki/Woo_(kaiju)
MIT License
1.27k stars 96 forks source link

Handle invalid http versions without ending up in the debugger #98

Closed ajberkley closed 2 years ago

ajberkley commented 2 years ago

If debug is nil, we still end up in a debugger if someone sends a request with an invalid HTTP and with debug t the debugger message is not helpful anyway. This is because there is no error wrapper around the parsing of the http request header. I added that error wrapper. Then also the error wasn't printable properly so errored again. Both fixed.

fukamachi commented 2 years ago

Thanks!