Commit ca5e25df authored by titanium007's avatar titanium007

issue #45

parent 8d7986ec
...@@ -419,10 +419,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -419,10 +419,7 @@ namespace Titanium.Web.Proxy.EventArguments
response.ResponseHeaders.Add(new HttpHeader("Pragma", "no-cache")); response.ResponseHeaders.Add(new HttpHeader("Pragma", "no-cache"));
response.ResponseHeaders.Add(new HttpHeader("Expires", "0")); response.ResponseHeaders.Add(new HttpHeader("Expires", "0"));
ProxySession.Request.RequestLocked = true;
response.ResponseBody = result; response.ResponseBody = result;
response.ResponseLocked = true;
response.ResponseBodyRead = true;
Respond(response); Respond(response);
...@@ -432,6 +429,11 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -432,6 +429,11 @@ namespace Titanium.Web.Proxy.EventArguments
/// a generic responder method /// a generic responder method
public void Respond(Response response) public void Respond(Response response)
{ {
ProxySession.Request.RequestLocked = true;
response.ResponseLocked = true;
response.ResponseBodyRead = true;
ProxySession.Response = response; ProxySession.Response = response;
ProxyServer.HandleHttpSessionResponse(this); ProxyServer.HandleHttpSessionResponse(this);
} }
......
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