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

http: fix Accept-Encoding parsing #652

Closed
wants to merge 2 commits into from

Conversation

stbenz
Copy link
Contributor

@stbenz stbenz commented May 22, 2015

http_encoding_valid() only worked, if the requested encoding was at the beginning of the Accept-Encoding header. This usually worked, as the function is only called with encoding "gzip" and "gzip" is usually at the beginning of the Accept-Encoding header.

But, when the HTML5 web player is opened in Google Chrome, it sends "Accept-Encoding: identity;q=1, *;q=0", which causes an endless loop.

This fix should do the correct parsing of the Accept-Encoding header according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3

@perexg
Copy link
Contributor

perexg commented May 22, 2015

Merged. Thanks.

@stbenz stbenz closed this May 22, 2015
@stbenz stbenz deleted the accept-encoding-fix branch May 22, 2015 20:27
@stbenz stbenz restored the accept-encoding-fix branch May 22, 2015 21:00
@stbenz stbenz reopened this May 22, 2015
@perexg
Copy link
Contributor

perexg commented May 23, 2015

Merged.

@perexg perexg closed this May 23, 2015
@stbenz stbenz deleted the accept-encoding-fix branch May 25, 2015 10:23
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