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

New line before header causes content to silently be part of the body #117

Open
connor4312 opened this issue Jul 21, 2021 · 1 comment
Open
Assignees

Comments

@connor4312
Copy link

Having a request like

POST https://example.com
Foo: bar

{"hello": "world"}

works, but

POST https://example.com

Foo: bar

{"hello": "world"}

will cause the header to be part of the body, even though the syntax highlighting makes it look like the headers will be handled as headers

@tanhakabir
Copy link
Owner

Hmm, so I'm parsing it in such a way that all headers have to be the subsequent line so I can properly demarcate where the body starts. Do you think that's unnecessary or do you think there's a better way to set my grammars for syntax highlighting to look out for line breaks?

@tanhakabir tanhakabir self-assigned this Jul 21, 2021
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

No branches or pull requests

2 participants