3 const StatusError
= require('statuserror');
5 // For more context, see https://gitlab.com/gitterHQ/webapp/issues/2291#filtering-out-requests-with-transfer-encoding-chunked-and-content-length
6 module
.exports = function(req
, res
, next
) {
7 if (req
.headers
['transfer-encoding'] === 'chunked') {
11 'Using the `Transfer-Encoding: chunked` header is not allowed when interacting with the API'