ghandle order of stuff

This commit is contained in:
Adam D. Ruppe 2019-08-13 13:42:35 -04:00
parent 4b91ff49b5
commit 279823ec7a
1 changed files with 2 additions and 1 deletions

3
cgi.d
View File

@ -1708,7 +1708,8 @@ class Cgi {
remoteAddress = value;
}
else if (name == "x-forwarded-host" || name == "host") {
host = value;
if(name != "host" || host is null)
host = value;
}
else if (name == "accept-encoding") {
if(value.indexOf("gzip") != -1)