Rename HttpRequest.IsSecure -> HttpRequest.IsHttps

This commit is contained in:
Levi B 2015-02-17 10:50:07 -08:00
parent 3f9423eda9
commit fa18a8fb30
3 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ namespace Microsoft.AspNet.Http.Core
set { HttpRequestFeature.Scheme = value; }
}
public override bool IsSecure
public override bool IsHttps
{
get { return string.Equals("https", Scheme, StringComparison.OrdinalIgnoreCase); }
}

View File

@ -32,7 +32,7 @@ namespace Microsoft.AspNet.Http
/// Returns true if the owin.RequestScheme is https.
/// </summary>
/// <returns>true if this request is using https; otherwise, false.</returns>
public abstract bool IsSecure { get; }
public abstract bool IsHttps { get; }
/// <summary>
/// Gets or set the Host header. May include the port.

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Owin
_context.Items[OwinConstants.OwinVersion] = "1.0";
}
if (context.Request.IsSecure)
if (context.Request.IsHttps)
{
_entries.Add(OwinConstants.CommonKeys.ClientCertificate, new FeatureMap<IHttpClientCertificateFeature>(feature => feature.ClientCertificate,
(feature, value) => feature.ClientCertificate = (X509Certificate)value));