[Modify] Replace it
This commit is contained in:
		| @@ -282,8 +282,12 @@ namespace WebSocketSharp.Net | |||||||
|     /// </value> |     /// </value> | ||||||
|     public Stream InputStream { |     public Stream InputStream { | ||||||
|       get { |       get { | ||||||
|         if (_inputStream == null) |         if (_inputStream == null) { | ||||||
|           _inputStream = getInputStream () ?? Stream.Null; |           _inputStream = _contentLength > 0 || _chunked | ||||||
|  |                          ? _connection | ||||||
|  |                            .GetRequestStream (_contentLength, _chunked) | ||||||
|  |                          : Stream.Null; | ||||||
|  |         } | ||||||
|  |  | ||||||
|         return _inputStream; |         return _inputStream; | ||||||
|       } |       } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user