โ I'm submitting a ...
๐ Describe the bug. What is the current behavior?
When Cheroot receives a request in which the first field-line begins with SP or HTAB, it responds 500 because of an UnboundLocalError.
โ What is the motivation / use case for changing the behavior?
Malformed requests should get 400 responses, and should not trigger unhandled exceptions.
โ I'm submitting a ...
๐ Describe the bug. What is the current behavior?
When Cheroot receives a request in which the first field-line begins with SP or HTAB, it responds 500 because of an
UnboundLocalError.โ What is the motivation / use case for changing the behavior?
Malformed requests should get 400 responses, and should not trigger unhandled exceptions.