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

chrome request header "application/signed-exchange;v=b3" causing mime parse error #400

Closed
siff-jason opened this issue May 11, 2019 · 2 comments

Comments

@siff-jason
Copy link

I believe since Chrome 73 there is a new Accept request header and this appears to be causing a mime parse issue with go-restful.

The request header:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3

The error:

mime.go:37: unable to parse quality in application/signed-exchange;v=b3, strconv.ParseFloat: parsing "b3": invalid syntax
@emicklei
Copy link
Owner

thank you for reporting this. i will revisit the parsing section.

emicklei added a commit that referenced this issue May 12, 2019
@siff-jason
Copy link
Author

Thanks @emicklei - i've grabbed the latest and all seems good!

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