[Modify] Polish it
This commit is contained in:
parent
4fbc2d4f54
commit
cab803cca7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user