express-interceptor icon indicating copy to clipboard operation
express-interceptor copied to clipboard

A tiny interceptor of responses for Express

Results 7 express-interceptor issues
Sort by recently updated
recently updated
newest added

Hi Team/@EricLin2004/@pierrebeugnot, Can any one provide me how can I test the interceptor methods using jest I am using the library as below import interceptor from 'express-interceptor'; const myMiddleWare =...

Hi @flockonus , There are some security vulnerabilities with debug 2.2.0. We are currently using express-interceptor and it is very useful for us. The issues have been fixed with 2.6.9....

The interception appears to happen after ETag header has already been set for the response. Consequently, the ETag doesn't reflect the changed output, which can cause browser caching issues--even if...

It's seems that if i use this package, `Content-Length` is never set and `Transfer-Encoding` is equal to `chunked`. Is it normal ? My fix : setting the **Content-Length** juste before...

Hey, just wanted to know is there a reason to remove content-length header?

Most times it will be ok, unless there is a global called cb.

Parsing binary data as utf-8 can cause problems, e.g. pdf file. Parsing as utf-8 replaces bytes that cannot be parsed with replacement character - https://en.wikipedia.org/wiki/Specials_(Unicode_block)#:~:text=The%20replacement%20character%20%EF%BF%BD%20(often,data%20to%20a%20correct%20symbol For example bytes FB, FC,...