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

Commit 302303e

Browse files
committed
PR #806 by keyoti
1 parent 1edcb32 commit 302303e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/Titanium.Web.Proxy.Examples.Basic/ProxyTestController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,19 +355,19 @@ private async Task onResponse(object sender, SessionEventArgs e)
355355

356356
////if (!e.ProxySession.Request.Host.Equals("medeczane.sgk.gov.tr")) return;
357357
//if (e.HttpClient.Request.Method == "GET" || e.HttpClient.Request.Method == "POST")
358-
//{
358+
//{
359359
// if (e.HttpClient.Response.StatusCode == (int)HttpStatusCode.OK)
360360
// {
361361
// if (e.HttpClient.Response.ContentType != null && e.HttpClient.Response.ContentType.Trim().ToLower().Contains("text/html"))
362362
// {
363363
// var bodyBytes = await e.GetResponseBody();
364-
// await e.SetResponseBody(bodyBytes);
364+
// e.SetResponseBody(bodyBytes);
365365

366366
// string body = await e.GetResponseBodyAsString();
367-
// await e.SetResponseBodyString(body);
367+
// e.SetResponseBodyString(body);
368368
// }
369369
// }
370-
//}
370+
//}
371371
}
372372

373373
private async Task onAfterResponse(object sender, SessionEventArgs e)

src/Titanium.Web.Proxy/Http/Request.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Uri RequestUri
5959
}
6060
set
6161
{
62-
Url = value.ToString();
62+
Url = value.OriginalString;
6363
}
6464
}
6565

0 commit comments

Comments
 (0)