[Modify] Replace it

This commit is contained in:
sta 2018-02-22 16:50:16 +09:00
parent f34eb021b3
commit 878626da4a

View File

@ -280,14 +280,8 @@ namespace WebSocketSharp.Net
/// </value> /// </value>
public Stream InputStream { public Stream InputStream {
get { get {
if (!HasEntityBody) if (_inputStream == null)
return Stream.Null; _inputStream = getInputStream () ?? Stream.Null;
if (_inputStream == null) {
_inputStream = _connection.GetRequestStream (
_contentLength, _chunked
);
}
return _inputStream; return _inputStream;
} }