isSecure fix for fastcgi