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

vegur_client:stream_header connection header parsing #176

Merged
merged 1 commit into from May 5, 2017

Conversation

joedevivo
Copy link
Contributor

connection header parsing shouldn't crash on empty header value.

@@ -690,7 +690,8 @@ stream_header(Client=#client{state=State, buffer=Buffer,
end
end;
<<"connection">> ->
Values = header_list_values(Value),
Copy link
Contributor

Choose a reason for hiding this comment

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

Would propose to get rid of header_list_values as it is only used in one other place. Also wondering if we can test this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, can remove that function for sure.

It doesn't look like there's an existing test, adding one would be a lot of work to prove we're no longer hitting a bad arg in an edge case.

connection header parsing shouldn't crash on empty header value.
@joedevivo joedevivo force-pushed the jd/allow-empty-list-connection-header branch from ac9ccd8 to c54de4f Compare May 5, 2017 19:05
@ypaq
Copy link
Contributor

ypaq commented May 5, 2017 via email

@joedevivo joedevivo merged commit a279923 into master May 5, 2017
@joedevivo joedevivo deleted the jd/allow-empty-list-connection-header branch May 5, 2017 19:10
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.

None yet

2 participants