Commit e17fe156 authored by titanium007's avatar titanium007

Merge pull request #26 from sizingservers/dev

SessionEventArgs: A typo in an exception + wrong decompression method for zlib when reading the request headers.
parents 43a83a7a 9a5a3483
...@@ -168,7 +168,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -168,7 +168,7 @@ namespace Titanium.Web.Proxy.EventArguments
RequestBody = CompressionHelper.DecompressDeflate(requestBodyStream); RequestBody = CompressionHelper.DecompressDeflate(requestBodyStream);
break; break;
case "zlib": case "zlib":
RequestBody = CompressionHelper.DecompressGzip(requestBodyStream); RequestBody = CompressionHelper.DecompressZlib(requestBodyStream);
break; break;
default: default:
RequestBody = requestBodyStream.ToArray(); RequestBody = requestBodyStream.ToArray();
...@@ -265,7 +265,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -265,7 +265,7 @@ namespace Titanium.Web.Proxy.EventArguments
public void SetRequestBodyString(string body) public void SetRequestBodyString(string body)
{ {
if (RequestLocked) throw new Exception("Youcannot call this function after request is made to server."); if (RequestLocked) throw new Exception("You cannot call this function after request is made to server.");
if (!RequestBodyRead) if (!RequestBodyRead)
{ {
......
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