Refactored a few for ChunkedRequestStream.cs

This commit is contained in:
sta 2015-04-09 16:17:28 +09:00
parent 6ee4657719
commit a6bd7c35c4
2 changed files with 5 additions and 5 deletions

View File

@ -54,11 +54,11 @@ namespace WebSocketSharp.Net
#endregion
#region Public Constructors
#region Internal Constructors
public ChunkedRequestStream (
HttpListenerContext context, Stream stream, byte[] buffer, int offset, int length)
: base (stream, buffer, offset, length)
internal ChunkedRequestStream (
Stream stream, byte[] buffer, int offset, int count, HttpListenerContext context)
: base (stream, buffer, offset, count)
{
_context = context;
_decoder = new ChunkStream ((WebHeaderCollection) context.Request.Headers);

View File

@ -489,7 +489,7 @@ namespace WebSocketSharp.Net
_chunked = true;
_context.Response.SendChunked = true;
_inputStream = new ChunkedRequestStream (
_context, _stream, buff, _position, len - _position);
_stream, buff, _position, len - _position, _context);
}
else {
_inputStream = new RequestStream (