Skip to content

Commit 098b18e

Browse files
committed
[Modify] Rename it
1 parent 3f61203 commit 098b18e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

websocket-sharp/HttpBase.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal abstract class HttpBase
4141
#region Private Fields
4242

4343
private string _messageBody;
44-
private byte[] _entityBodyData;
44+
private byte[] _messageBodyData;
4545
private NameValueCollection _headers;
4646
private static readonly int _headersMaxLength;
4747
private Version _protocolVersion;
@@ -83,7 +83,7 @@ protected HttpBase (Version version, NameValueCollection headers)
8383

8484
internal byte[] MessageBodyData {
8585
get {
86-
return _entityBodyData;
86+
return _messageBodyData;
8787
}
8888
}
8989

@@ -110,7 +110,7 @@ protected string HeaderSection {
110110

111111
public bool HasEntityBody {
112112
get {
113-
return _entityBodyData != null;
113+
return _messageBodyData != null;
114114
}
115115
}
116116

@@ -141,7 +141,7 @@ public Version ProtocolVersion {
141141

142142
private string getEntityBody ()
143143
{
144-
if (_entityBodyData == null || _entityBodyData.LongLength == 0)
144+
if (_messageBodyData == null || _messageBodyData.LongLength == 0)
145145
return String.Empty;
146146

147147
var contentType = _headers["Content-Type"];
@@ -150,7 +150,7 @@ private string getEntityBody ()
150150
? HttpUtility.GetEncoding (contentType)
151151
: Encoding.UTF8;
152152

153-
return enc.GetString (_entityBodyData);
153+
return enc.GetString (_messageBodyData);
154154
}
155155

156156
private static byte[] readEntityBodyFrom (Stream stream, string length)
@@ -248,7 +248,7 @@ protected static T Read<T> (
248248
var contentLen = ret.Headers["Content-Length"];
249249

250250
if (contentLen != null && contentLen.Length > 0)
251-
ret._entityBodyData = readEntityBodyFrom (stream, contentLen);
251+
ret._messageBodyData = readEntityBodyFrom (stream, contentLen);
252252
}
253253
catch (Exception ex) {
254254
exception = ex;

0 commit comments

Comments
 (0)