From 4d01d325ec0398ebdb633a3c33d892a7596d0125 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 21 Jul 2020 19:43:05 +0900 Subject: [PATCH] [Modify] Rename it --- websocket-sharp/Net/HttpHeaderInfo.cs | 12 ++++++------ websocket-sharp/Net/WebHeaderCollection.cs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/websocket-sharp/Net/HttpHeaderInfo.cs b/websocket-sharp/Net/HttpHeaderInfo.cs index 9c19988f..84274353 100644 --- a/websocket-sharp/Net/HttpHeaderInfo.cs +++ b/websocket-sharp/Net/HttpHeaderInfo.cs @@ -69,6 +69,12 @@ namespace WebSocketSharp.Net #region Public Properties + public string HeaderName { + get { + return _headerName; + } + } + public bool IsRequest { get { return (_headerType & HttpHeaderType.Request) == HttpHeaderType.Request; @@ -81,12 +87,6 @@ namespace WebSocketSharp.Net } } - public string Name { - get { - return _headerName; - } - } - public HttpHeaderType Type { get { return _headerType; diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index d031349c..f92fc291 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -868,7 +868,7 @@ namespace WebSocketSharp.Net var comparison = StringComparison.InvariantCultureIgnoreCase; foreach (var headerInfo in _headers.Values) { - if (headerInfo.Name.Equals (name, comparison)) + if (headerInfo.HeaderName.Equals (name, comparison)) return headerInfo; } @@ -880,7 +880,7 @@ namespace WebSocketSharp.Net HttpHeaderInfo headerInfo; return _headers.TryGetValue (key, out headerInfo) - ? headerInfo.Name + ? headerInfo.HeaderName : null; }