diff --git a/cgi.d b/cgi.d index db90cc5..451679a 100644 --- a/cgi.d +++ b/cgi.d @@ -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)