1
0
Fork 0
forked from svrjs/svrjs

Fix Cannot assign to "currentMiddleware" because it is a constant error.

This commit is contained in:
Dorian Niemiec 2024-08-25 12:38:15 +02:00
parent 4b02efdeba
commit ddae2e468e

View file

@ -709,7 +709,7 @@ function requestHandler(req, res) {
// Call the next middleware function // Call the next middleware function
const next = () => { const next = () => {
const currentMiddleware = middleware[index++]; let currentMiddleware = middleware[index++];
while (req.isProxy && currentMiddleware && !currentMiddleware.proxySafe) { while (req.isProxy && currentMiddleware && !currentMiddleware.proxySafe) {
currentMiddleware = middleware[index++]; currentMiddleware = middleware[index++];
} }