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

Commit 75d6ba7

Browse files
committed
comment out test code
1 parent de33f72 commit 75d6ba7

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

Titanium.Web.Proxy.Test/ProxyTestController.cs

+12-14
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,19 @@ public void OnResponse(object sender, SessionEventArgs e)
7676
{
7777

7878
////read response headers
79-
var responseHeaders = e.ProxySession.Response.ResponseHeaders;
80-
81-
82-
79+
// var responseHeaders = e.ProxySession.Response.ResponseHeaders;
80+
8381
//if (!e.ProxySession.Request.Hostname.Equals("medeczane.sgk.gov.tr")) return;
84-
if (e.RequestMethod == "GET" || e.RequestMethod == "POST")
85-
{
86-
if (e.ProxySession.Response.ResponseStatusCode == "200")
87-
{
88-
if (e.ProxySession.Response.ContentType.Trim().ToLower().Contains("text/html"))
89-
{
90-
string body = e.GetResponseBodyAsString(); //This line crashes
91-
}
92-
}
93-
}
82+
//if (e.RequestMethod == "GET" || e.RequestMethod == "POST")
83+
//{
84+
// if (e.ProxySession.Response.ResponseStatusCode == "200")
85+
// {
86+
// if (e.ProxySession.Response.ContentType.Trim().ToLower().Contains("text/html"))
87+
// {
88+
// string body = e.GetResponseBodyAsString();
89+
// }
90+
// }
91+
//}
9492
}
9593
}
9694
}

0 commit comments

Comments
 (0)