|
|
|
@ -487,12 +487,12 @@ namespace WebSocketSharp.Net
|
|
|
|
disposeRequestBuffer ();
|
|
|
|
disposeRequestBuffer ();
|
|
|
|
if (chunked) {
|
|
|
|
if (chunked) {
|
|
|
|
_context.Response.SendChunked = true;
|
|
|
|
_context.Response.SendChunked = true;
|
|
|
|
_inputStream = new ChunkedRequestStream (
|
|
|
|
_inputStream =
|
|
|
|
_stream, buff, _position, len - _position, _context);
|
|
|
|
new ChunkedRequestStream (_stream, buff, _position, len - _position, _context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
_inputStream = new RequestStream (
|
|
|
|
_inputStream =
|
|
|
|
_stream, buff, _position, len - _position, contentLength);
|
|
|
|
new RequestStream (_stream, buff, _position, len - _position, contentLength);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return _inputStream;
|
|
|
|
return _inputStream;
|
|
|
|
|