Closed dgaya closed 7 years ago
Where are we on this pull request?
It seems to be a pretty serious bug especially after this pull request (https://github.com/cojs/co-body/pull/54/files) being merged since the shared options keep existing across different event loops. The error request size did not match content length
happens frequently under high concurrency.
@luin sorry, I'll take a look at this
Related to #44 .
Bug description
When mixed compressed and uncompressed requests happen and the caller is using a shared options object (like koa-bodyparser does), then the length of the previous request is carried to the next request giving the following error:
See the test added to reproduce it.
Fix