diff --git a/websocket-sharp/HttpResponse.cs b/websocket-sharp/HttpResponse.cs index d7a65c9f..ef15a099 100644 --- a/websocket-sharp/HttpResponse.cs +++ b/websocket-sharp/HttpResponse.cs @@ -86,6 +86,12 @@ namespace WebSocketSharp } } + public bool HasConnectionClose { + get { + return Headers.Contains ("Connection", "close"); + } + } + public bool IsProxyAuthenticationRequired { get { return _code == "407";