Skip to content

Parse header message field 'Content-Type' #462

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

Merged
merged 3 commits into from
Dec 12, 2022

Conversation

saitmilk
Copy link
Contributor

fix #461

Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this would be a bit simpler if we rely on attoparsec backtracking? Can we not do something like:

try contentType
len <- contentLength
try contentType
...

or something? i.e. just try and parse it both before and afterwards? That seems like it would be a bit easier to understand.

@saitmilk
Copy link
Contributor Author

saitmilk commented Oct 31, 2022

how about it right now

@saitmilk saitmilk requested a review from michaelpj November 13, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to parse message header
2 participants