diff --git a/websocket-sharp/Net/HttpHeaderInfo.cs b/websocket-sharp/Net/HttpHeaderInfo.cs index 84274353..eece938b 100644 --- a/websocket-sharp/Net/HttpHeaderInfo.cs +++ b/websocket-sharp/Net/HttpHeaderInfo.cs @@ -75,21 +75,21 @@ namespace WebSocketSharp.Net } } - public bool IsRequest { + public HttpHeaderType HeaderType { get { - return (_headerType & HttpHeaderType.Request) == HttpHeaderType.Request; + return _headerType; } } - public bool IsResponse { + public bool IsRequest { get { - return (_headerType & HttpHeaderType.Response) == HttpHeaderType.Response; + return (_headerType & HttpHeaderType.Request) == HttpHeaderType.Request; } } - public HttpHeaderType Type { + public bool IsResponse { get { - return _headerType; + return (_headerType & HttpHeaderType.Response) == HttpHeaderType.Response; } }