Commit 2582fe3d authored by justcoding121's avatar justcoding121 Committed by justcoding121

Merge pull request #26 from sizingservers/dev

SessionEventArgs: A typo in an exception + wrong decompression method for zlib when reading the request headers.
parents 051b87cd 0d3a28fa
......@@ -168,7 +168,7 @@ namespace Titanium.Web.Proxy.EventArguments
RequestBody = CompressionHelper.DecompressDeflate(requestBodyStream);
break;
case "zlib":
RequestBody = CompressionHelper.DecompressGzip(requestBodyStream);
RequestBody = CompressionHelper.DecompressZlib(requestBodyStream);
break;
default:
RequestBody = requestBodyStream.ToArray();
......@@ -265,7 +265,7 @@ namespace Titanium.Web.Proxy.EventArguments
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)
{
......
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