Rename HttpRequest.IsSecure -> HttpRequest.IsHttps
This commit is contained in:
parent
3f9423eda9
commit
fa18a8fb30
|
|
@ -112,7 +112,7 @@ namespace Microsoft.AspNet.Http.Core
|
||||||
set { HttpRequestFeature.Scheme = value; }
|
set { HttpRequestFeature.Scheme = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsSecure
|
public override bool IsHttps
|
||||||
{
|
{
|
||||||
get { return string.Equals("https", Scheme, StringComparison.OrdinalIgnoreCase); }
|
get { return string.Equals("https", Scheme, StringComparison.OrdinalIgnoreCase); }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace Microsoft.AspNet.Http
|
||||||
/// Returns true if the owin.RequestScheme is https.
|
/// Returns true if the owin.RequestScheme is https.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true if this request is using https; otherwise, false.</returns>
|
/// <returns>true if this request is using https; otherwise, false.</returns>
|
||||||
public abstract bool IsSecure { get; }
|
public abstract bool IsHttps { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or set the Host header. May include the port.
|
/// Gets or set the Host header. May include the port.
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Owin
|
||||||
_context.Items[OwinConstants.OwinVersion] = "1.0";
|
_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,
|
_entries.Add(OwinConstants.CommonKeys.ClientCertificate, new FeatureMap<IHttpClientCertificateFeature>(feature => feature.ClientCertificate,
|
||||||
(feature, value) => feature.ClientCertificate = (X509Certificate)value));
|
(feature, value) => feature.ClientCertificate = (X509Certificate)value));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue