diff --git a/src/Microsoft.AspNet.Http.Core/DefaultHttpRequest.cs b/src/Microsoft.AspNet.Http.Core/DefaultHttpRequest.cs index 46fa1907b7..4c89f0f457 100644 --- a/src/Microsoft.AspNet.Http.Core/DefaultHttpRequest.cs +++ b/src/Microsoft.AspNet.Http.Core/DefaultHttpRequest.cs @@ -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); } } diff --git a/src/Microsoft.AspNet.Http/HttpRequest.cs b/src/Microsoft.AspNet.Http/HttpRequest.cs index 5ab2010a59..7465c30638 100644 --- a/src/Microsoft.AspNet.Http/HttpRequest.cs +++ b/src/Microsoft.AspNet.Http/HttpRequest.cs @@ -32,7 +32,7 @@ namespace Microsoft.AspNet.Http /// Returns true if the owin.RequestScheme is https. /// /// true if this request is using https; otherwise, false. - public abstract bool IsSecure { get; } + public abstract bool IsHttps { get; } /// /// Gets or set the Host header. May include the port. diff --git a/src/Microsoft.AspNet.Owin/OwinEnvironment.cs b/src/Microsoft.AspNet.Owin/OwinEnvironment.cs index 4a97095eda..148d80fcc0 100644 --- a/src/Microsoft.AspNet.Owin/OwinEnvironment.cs +++ b/src/Microsoft.AspNet.Owin/OwinEnvironment.cs @@ -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(feature => feature.ClientCertificate, (feature, value) => feature.ClientCertificate = (X509Certificate)value));