Accept.encodings *;q=0 issue
Open
bug
- Dominant language
- JavaScript
- Stars
- 55
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
### 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' ]
Contributor guide
Assessment
This issue has not been assessed yet.