Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit ca5e25d

Browse files
committed
issue #45
1 parent 8d7986e commit ca5e25d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs

+6-4
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,7 @@ public void Ok(byte[] result)
419419
response.ResponseHeaders.Add(new HttpHeader("Pragma", "no-cache"));
420420
response.ResponseHeaders.Add(new HttpHeader("Expires", "0"));
421421

422-
ProxySession.Request.RequestLocked = true;
423422
response.ResponseBody = result;
424-
response.ResponseLocked = true;
425-
response.ResponseBodyRead = true;
426423

427424
Respond(response);
428425

@@ -431,7 +428,12 @@ public void Ok(byte[] result)
431428

432429
/// a generic responder method
433430
public void Respond(Response response)
434-
{
431+
{
432+
ProxySession.Request.RequestLocked = true;
433+
434+
response.ResponseLocked = true;
435+
response.ResponseBodyRead = true;
436+
435437
ProxySession.Response = response;
436438
ProxyServer.HandleHttpSessionResponse(this);
437439
}

0 commit comments

Comments
 (0)