This commit is contained in:
Justin Kotalik 2018-06-12 08:27:11 -07:00 committed by GitHub
parent 05a6e42fe7
commit cd71cc050e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
bool IHttpResponseFeature.HasStarted => HasResponseStarted;
bool IHttpUpgradeFeature.IsUpgradableRequest => _server.IsWebSocketAvailible(_pInProcessHandler);
bool IHttpUpgradeFeature.IsUpgradableRequest => _server.IsWebSocketAvailable(_pInProcessHandler);
bool IFeatureCollection.IsReadOnly => false;

View File

@ -147,7 +147,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
ResetFeatureCollection();
if (!_server.IsWebSocketAvailible(_pInProcessHandler))
if (!_server.IsWebSocketAvailable(_pInProcessHandler))
{
_currentIHttpUpgradeFeature = null;
}

View File

@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
public IFeatureCollection Features { get; } = new FeatureCollection();
// TODO: Remove pInProcessHandler argument
public bool IsWebSocketAvailible(IntPtr pInProcessHandler)
public bool IsWebSocketAvailable(IntPtr pInProcessHandler)
{
// Check if the Http upgrade feature is available in IIS.
// To check this, we can look at the server variable WEBSOCKET_VERSION