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

Crash on Chrome Accept header with v=b3 parameter #6

Open
snarfed opened this issue Dec 27, 2022 · 0 comments
Open

Crash on Chrome Accept header with v=b3 parameter #6

snarfed opened this issue Dec 27, 2022 · 0 comments

Comments

@snarfed
Copy link

snarfed commented Dec 27, 2022

negotiator currently crashes on a v=b3 parameter that Chrome added to its Accept header a while ago. Here's the full string:

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

Stack trace:

ValueError: could not convert string to float: 'b3'
  at ._interpret_accept_field ( /layers/google.python.pip/pip/lib/python3.9/site-packages/negotiator/negotiator.py:652 )
  at ._analyse_accept ( /layers/google.python.pip/pip/lib/python3.9/site-packages/negotiator/negotiator.py:557 )
  at .negotiate ( /layers/google.python.pip/pip/lib/python3.9/site-packages/negotiator/negotiator.py:423 )

Related:

snarfed added a commit to snarfed/bridgy-fed that referenced this issue Jan 2, 2023
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