koajs/compress

Error [ERR_HTTP2_HEADERS_SENT]: Cannot set headers after they are sent to the client

shadowgate15 opened this issue · 1 comments

This error has been showing up on my production web server for ABA Collection. It appears to be due to a way compress is interacting with HTTP/2 or at least when using http2.

Based on all of my debugging, it seems as though it is returning after the response has already been sent.

I'll work on a PR and at least get a test up and running that shows the error.

I'm sorry this is not due to koa-compress it is due to an interaction between it and koa-redirect-loop. Most likely on koa-redirect-loop's fault. Will work on it their.