forked from svrjs/svrjs
Remove unneeded global flag for /\.$/ regular expression
This commit is contained in:
parent
30498263fc
commit
12a4bcdc8a
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ function requestHandler(req, res) {
|
||||||
if (typeof req.headers.host == "string") {
|
if (typeof req.headers.host == "string") {
|
||||||
req.headers.host = req.headers.host.toLowerCase();
|
req.headers.host = req.headers.host.toLowerCase();
|
||||||
if (!req.headers.host.match(/^\.+$/))
|
if (!req.headers.host.match(/^\.+$/))
|
||||||
req.headers.host = req.headers.host.replace(/\.$/g, "");
|
req.headers.host = req.headers.host.replace(/\.$/, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
logFacilities.reqmessage(
|
logFacilities.reqmessage(
|
||||||
|
|
Reference in a new issue