From a23bd04bdc65adb5c2b2f1b13a05ae2e0663cb00 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 19 Dec 2014 15:28:44 +0900 Subject: [PATCH] Added HasConnectionClose property to the HttpResponse class --- websocket-sharp/HttpResponse.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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";