[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>
public Stream InputStream {
get {
if (!HasEntityBody)
return Stream.Null;
if (_inputStream == null) {
_inputStream = _connection.GetRequestStream (
_contentLength, _chunked
);
}
if (_inputStream == null)
_inputStream = getInputStream () ?? Stream.Null;
return _inputStream;
}