forked from svrjs/svrjs
Fix Cannot assign to "currentMiddleware" because it is a constant
error.
This commit is contained in:
parent
4b02efdeba
commit
ddae2e468e
1 changed files with 1 additions and 1 deletions
|
@ -709,7 +709,7 @@ function requestHandler(req, res) {
|
|||
|
||||
// Call the next middleware function
|
||||
const next = () => {
|
||||
const currentMiddleware = middleware[index++];
|
||||
let currentMiddleware = middleware[index++];
|
||||
while (req.isProxy && currentMiddleware && !currentMiddleware.proxySafe) {
|
||||
currentMiddleware = middleware[index++];
|
||||
}
|
||||
|
|
Reference in a new issue