Commit dfc356cd authored by titanium007's avatar titanium007

remove extra newline

parent ffe306c2
...@@ -121,7 +121,7 @@ namespace Titanium.Web.Proxy.Http ...@@ -121,7 +121,7 @@ namespace Titanium.Web.Proxy.Http
} }
requestLines.AppendLine(); requestLines.AppendLine();
requestLines.AppendLine(); //requestLines.AppendLine();
string request = requestLines.ToString(); string request = requestLines.ToString();
byte[] requestBytes = Encoding.ASCII.GetBytes(request); byte[] requestBytes = Encoding.ASCII.GetBytes(request);
......
...@@ -382,7 +382,7 @@ namespace Titanium.Web.Proxy ...@@ -382,7 +382,7 @@ namespace Titanium.Web.Proxy
private static void SendClientRequestBody(SessionEventArgs args) private static void SendClientRequestBody(SessionEventArgs args)
{ {
// End the operation // End the operation
var postStream = args.ProxySession.ProxyClient.ServerStreamReader; var postStream = args.ProxySession.ProxyClient.Stream;
if (args.ProxySession.Request.RequestContentLength > 0) if (args.ProxySession.Request.RequestContentLength > 0)
...@@ -411,7 +411,7 @@ namespace Titanium.Web.Proxy ...@@ -411,7 +411,7 @@ namespace Titanium.Web.Proxy
{ {
bytesToRead = remainingBytes; bytesToRead = remainingBytes;
} }
postStream.BaseStream.Write(buffer, 0, buffer.Length); postStream.Write(buffer, 0, buffer.Length);
} }
//postStream.Close(); //postStream.Close();
...@@ -438,7 +438,7 @@ namespace Titanium.Web.Proxy ...@@ -438,7 +438,7 @@ namespace Titanium.Web.Proxy
if (chunkSize != 0) if (chunkSize != 0)
{ {
var buffer = args.Client.ClientStreamReader.ReadBytes(chunkSize); var buffer = args.Client.ClientStreamReader.ReadBytes(chunkSize);
postStream.BaseStream.Write(buffer, 0, buffer.Length); postStream.Write(buffer, 0, buffer.Length);
//chunk trail //chunk trail
args.Client.ClientStreamReader.ReadLine(); args.Client.ClientStreamReader.ReadLine();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment