forked from svrjs/svrjs
Fixed typo that caused 500 error with 308 code redirects
This commit is contained in:
parent
9569c7b7fd
commit
55dfa0ad1e
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -4370,7 +4370,7 @@ if (!cluster.isPrimary) {
|
|||
} else {
|
||||
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;
|
||||
} else if (nonscode.scode == 403) {
|
||||
callServerError(403);
|
||||
|
|
Reference in a new issue