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