Skip to content

Fixing HPE_INVALID_HEADER_TOKEN complaints #32

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

Open
BigBlueHat opened this issue Jun 7, 2016 · 0 comments
Open

Fixing HPE_INVALID_HEADER_TOKEN complaints #32

BigBlueHat opened this issue Jun 7, 2016 · 0 comments

Comments

@BigBlueHat
Copy link

I just hit this with an API I'm developing (...typos... 😫). http in node is unforgiving, so invalid headers throw HPE_INVALID_HEADER_TOKEN:

{ [Error: Parse Error] bytesParsed: 163, code: 'HPE_INVALID_HEADER_TOKEN' }

The http-parser-js library is more forgiving.

The ideal situation would be that when there is a malformed header in the response, that a test style error could be thrown--rather than an end of the world sort of thing.

Thoughts?
🎩

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

1 participant