Commit 12625c2b authored by justcoding121's avatar justcoding121 Committed by justcoding121

issue #45

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