You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to achieve or the steps to reproduce?
I am expecting the following code to produce [ 'compress' ] but instead it produces [ 'compress', 'identity' ], since I expect "*;q=0" to exclude "identity". Is my understanding correct?
hoolam
changed the title
accept.encodings("compress;q=0.5, *;q=0") should not return "identity"
Should accept.encodings("compress;q=0.5, *;q=0") return ["compress"] only or ["compress", "identity"]?
Oct 16, 2024
kanongil
added a commit
to kanongil/accept
that referenced
this issue
Oct 16, 2024
kanongil
changed the title
Should accept.encodings("compress;q=0.5, *;q=0") return ["compress"] only or ["compress", "identity"]?
Accept.encodings *;q=0 issue
Oct 16, 2024
Runtime
node.js
Runtime version
v20.18.0
Module version
@hapi/accept 6.0.3
Last module version without issue
No response
Used with
Standalone
Any other relevant information
No response
What are you trying to achieve or the steps to reproduce?
I am expecting the following code to produce [ 'compress' ] but instead it produces [ 'compress', 'identity' ], since I expect "*;q=0" to exclude "identity". Is my understanding correct?
const accept = require( "@hapi/accept" );
console.log( accept.encodings( "compress;q=0.5, *;q=0" ));
What was the result you got?
[ 'compress', 'identity' ]
What result did you expect?
[ 'compress' ]
The text was updated successfully, but these errors were encountered: