cheroot/server.py:968: TypeError: not enough arguments for format string #218
Labels
bug
Something is broken
good first issue
This is what we believe is newcomer-friendly, feel free to contribute!
help wanted
Somebody help us, please!
reproducer: present
This PR or issue contains code, which reproduce the problem described or clearly understandable STR
β I'm submitting a ...
π Describe the bug. What is the current behavior?
cherrypy returns a 500 on some malformed HTTP request due to a missing argument in a format string in server.read_request_line.
β What is the motivation / use case for changing the behavior?
I believe that web servers should not return 500s in general. If you disagree, feel free to close this issue. Otherwise, I'll keep fuzzing cherrypy and reporting issues.
π‘ To Reproduce
Steps to reproduce the behavior:
echo -ne "GET / HTTP/1\r\n\r\n" | nc localhost 8080
π‘ Expected behavior
I would expect a 4xx request, probably a 400
π Details
π Environment
The text was updated successfully, but these errors were encountered: