Improve error message on invalid request start-line
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
No file or test is named in the issue. Start by locating the request start-line parsing path and the existing "invalid HTTP version" error, then inspect nearby tests. Done means that requests beginning with whitespace produce a more helpful error while existing valid start-lines retain their behavior.
Written by the indexing model from the issue text.
Description
If the HTTP message begins with whitespace, the resulting error is "invalid HTTP version". This felt misleading, or at least less helpful than it could be, since the version (HTTP/1.1) in the start-line was fine. If the message could instead either, ideally call out leading whitespace (as it may be subtle to spot), or at least instead say something like "invalid start-line", or "doesn't match HTTP format", or similar, I think it could help save people some time in tracking down this particular issue.
- Dominant language
- Rust
- Stars
- 713
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from seanmonstar/httparse
-
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
seanmonstar/httparse#222 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
seanmonstar/httparse#210 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
seanmonstar/httparse#196 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
seanmonstar/httparse#162 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
seanmonstar/httparse#161 · 3 comments ·
All issues in seanmonstar/httparse
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100