Spleelin (#910)
This commit is contained in:
parent
05a6e42fe7
commit
cd71cc050e
|
|
@ -182,7 +182,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
|
||||||
|
|
||||||
bool IHttpResponseFeature.HasStarted => HasResponseStarted;
|
bool IHttpResponseFeature.HasStarted => HasResponseStarted;
|
||||||
|
|
||||||
bool IHttpUpgradeFeature.IsUpgradableRequest => _server.IsWebSocketAvailible(_pInProcessHandler);
|
bool IHttpUpgradeFeature.IsUpgradableRequest => _server.IsWebSocketAvailable(_pInProcessHandler);
|
||||||
|
|
||||||
bool IFeatureCollection.IsReadOnly => false;
|
bool IFeatureCollection.IsReadOnly => false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
|
||||||
|
|
||||||
ResetFeatureCollection();
|
ResetFeatureCollection();
|
||||||
|
|
||||||
if (!_server.IsWebSocketAvailible(_pInProcessHandler))
|
if (!_server.IsWebSocketAvailable(_pInProcessHandler))
|
||||||
{
|
{
|
||||||
_currentIHttpUpgradeFeature = null;
|
_currentIHttpUpgradeFeature = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
|
||||||
public IFeatureCollection Features { get; } = new FeatureCollection();
|
public IFeatureCollection Features { get; } = new FeatureCollection();
|
||||||
|
|
||||||
// TODO: Remove pInProcessHandler argument
|
// TODO: Remove pInProcessHandler argument
|
||||||
public bool IsWebSocketAvailible(IntPtr pInProcessHandler)
|
public bool IsWebSocketAvailable(IntPtr pInProcessHandler)
|
||||||
{
|
{
|
||||||
// Check if the Http upgrade feature is available in IIS.
|
// Check if the Http upgrade feature is available in IIS.
|
||||||
// To check this, we can look at the server variable WEBSOCKET_VERSION
|
// To check this, we can look at the server variable WEBSOCKET_VERSION
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue