[Modify] Replace it
This commit is contained in:
parent
f34eb021b3
commit
878626da4a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user