1
0
Fork 0
forked from svrjs/svrjs

Fixed typo that caused 500 error with 308 code redirects

This commit is contained in:
Dorian Niemiec 2024-01-13 10:25:42 +01:00
parent 9569c7b7fd
commit 55dfa0ad1e

2
svr.js
View file

@ -4370,7 +4370,7 @@ if (!cluster.isPrimary) {
} else { } else {
location = nonscode.location + "?" + req.url.split("?")[1]; location = nonscode.location + "?" + req.url.split("?")[1];
} }
redirect(location, nonscode.scode == 302 || nonscode.scode == 307, nonscode.scode == 307 || nonsceode.scode == 308); redirect(location, nonscode.scode == 302 || nonscode.scode == 307, nonscode.scode == 307 || nonscode.scode == 308);
return; return;
} else if (nonscode.scode == 403) { } else if (nonscode.scode == 403) {
callServerError(403); callServerError(403);