|
|
|
@ -235,10 +235,16 @@ namespace WebSocketSharp.Net
|
|
|
|
/// </value>
|
|
|
|
/// </value>
|
|
|
|
public Stream InputStream {
|
|
|
|
public Stream InputStream {
|
|
|
|
get {
|
|
|
|
get {
|
|
|
|
return _inputStream ??
|
|
|
|
if (!HasEntityBody)
|
|
|
|
(_inputStream = HasEntityBody
|
|
|
|
return Stream.Null;
|
|
|
|
? _context.Connection.GetRequestStream (_contentLength, _chunked)
|
|
|
|
|
|
|
|
: Stream.Null);
|
|
|
|
if (_inputStream == null) {
|
|
|
|
|
|
|
|
_inputStream = _context.Connection.GetRequestStream (
|
|
|
|
|
|
|
|
_contentLength, _chunked
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _inputStream;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|