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

Commit

Permalink
comment out test code
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Jan 6, 2016
1 parent de33f72 commit 75d6ba7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Titanium.Web.Proxy.Test/ProxyTestController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,19 @@ public void OnResponse(object sender, SessionEventArgs e)
{

////read response headers
var responseHeaders = e.ProxySession.Response.ResponseHeaders;



// var responseHeaders = e.ProxySession.Response.ResponseHeaders;

//if (!e.ProxySession.Request.Hostname.Equals("medeczane.sgk.gov.tr")) return;
if (e.RequestMethod == "GET" || e.RequestMethod == "POST")
{
if (e.ProxySession.Response.ResponseStatusCode == "200")
{
if (e.ProxySession.Response.ContentType.Trim().ToLower().Contains("text/html"))
{
string body = e.GetResponseBodyAsString(); //This line crashes
}
}
}
//if (e.RequestMethod == "GET" || e.RequestMethod == "POST")
//{
// if (e.ProxySession.Response.ResponseStatusCode == "200")
// {
// if (e.ProxySession.Response.ContentType.Trim().ToLower().Contains("text/html"))
// {
// string body = e.GetResponseBodyAsString();
// }
// }
//}
}
}
}

0 comments on commit 75d6ba7

Please sign in to comment.