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

Variants with q value of 0 is not skipped #1

Open
SevereOverfl0w opened this issue Jul 12, 2020 · 0 comments
Open

Variants with q value of 0 is not skipped #1

SevereOverfl0w opened this issue Jul 12, 2020 · 0 comments

Comments

@SevereOverfl0w
Copy link

Given these opts:

{:juxt.http/variants ({:juxt.http/content-type nil, :juxt.http/content-language (), :juxt.http/content-encoding ({:juxt.http/content-coding "identity"}), :yada.representation/rep {:a 10}}),   
 :juxt.http/request-headers {"accept-encoding" ({:juxt.http/codings "gzip"} {:juxt.http/codings "identity", :juxt.http/qvalue 0.0}), "accept" nil, "accept-language" nil}}

The client is saying that "identity" is not acceptable by providing a q of 0.

https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.9

If a parameter has a quality value of 0, then content with this parameter is `not acceptable' for the client.

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