expressjs / compression

Node.js compression middleware
MIT License
2.77k stars 241 forks source link

middleware fails when the request has more than 1 values for accept-encoding header #165

Closed rishisharma08 closed 4 years ago

rishisharma08 commented 5 years ago

i have something like this to pass multiple headers

request.setHeader('accept-encoding', ['something', 'gzip']);

this is valid in nodejs. but get an error form compression:

"message":"accept.split is not a function"

dougwilson commented 5 years ago

Hi @rishisharma08 thanks for the report. I cannot seem to replicate the issue. Can you provide more specific instructions on how, exactly, to reproduce the error? Or maybe the entire stack trace for the error?

jonchurch commented 4 years ago

Closing as no reproduction