expressjs / compression

Node.js compression middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rishisharma08 opened this issue · comments

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"

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?

Closing as no reproduction