Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheroot responds 500 when first header field line is a continuation #728

Open
1 of 3 tasks
kenballus opened this issue Jul 6, 2024 · 0 comments
Open
1 of 3 tasks
Labels
bug Something is broken triage

Comments

@kenballus
Copy link

❓ I'm submitting a ...

  • 🐞 bug report
  • 🐣 feature request
  • ❓ question about the decisions made in the repository

🐞 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken triage
Projects
None yet
Development

No branches or pull requests

1 participant