U4-8924 Heath Check: Pingback to HTTPS uses wrong protocol

This commit is contained in:
Sebastiaan Janssen
2016-09-15 17:37:42 +02:00
parent 5397f2c53a
commit 0d054de6ac

View File

@@ -142,7 +142,8 @@ namespace Umbraco.Core.Sync
? ":" + request.ServerVariables["SERVER_PORT"]
: "";
var ssl = GlobalSettings.UseSSL ? "s" : ""; // force, whatever the first request
var useSsl = GlobalSettings.UseSSL || port == "443";
var ssl = useSsl ? "s" : ""; // force, whatever the first request
var url = "http" + ssl + "://" + request.ServerVariables["SERVER_NAME"] + port + IOHelper.ResolveUrl(SystemDirectories.Umbraco);
appContext._umbracoApplicationUrl = url.TrimEnd('/');