Skip to content

Commit e9c3285

Browse files
author
claudiamurialdo
committed
Remove unused FrontEndHttps and CheckHeaderValue rutines.
1 parent dbb87cf commit e9c3285

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,30 +3087,6 @@ public virtual string GetServerSchema()
30873087
return GXUri.UriSchemeHttp;
30883088
}
30893089
}
3090-
private bool FrontEndHttps()
3091-
{
3092-
if (CheckHeaderValue("Front-End-Https", "on") || CheckHeaderValue("X-Forwarded-Proto", "https"))
3093-
{
3094-
GXLogging.Debug(Logger, "Front-End-Https header activated");
3095-
return true;
3096-
}
3097-
else
3098-
{
3099-
return false;
3100-
}
3101-
}
3102-
private bool CheckHeaderValue(String headerName, String headerValue)
3103-
{
3104-
if (_HttpContext != null)
3105-
{
3106-
string httpsHeader = _HttpContext.Request.Headers[headerName];
3107-
if (!string.IsNullOrEmpty(httpsHeader) && httpsHeader.Equals(headerValue, StringComparison.OrdinalIgnoreCase))
3108-
{
3109-
return true;
3110-
}
3111-
}
3112-
return false;
3113-
}
31143090
public virtual string GetScriptPath()
31153091
{
31163092
try

0 commit comments

Comments
 (0)