Commit f04a4f5c authored by Honfika's avatar Honfika

method name fix

parent cb8fd1ad
...@@ -29,7 +29,7 @@ namespace Titanium.Web.Proxy ...@@ -29,7 +29,7 @@ namespace Titanium.Web.Proxy
var header = httpHeaders.GetFirstHeader(KnownHeaders.ProxyAuthorization); var header = httpHeaders.GetFirstHeader(KnownHeaders.ProxyAuthorization);
if (header == null) if (header == null)
{ {
session.WebSession.Response = SendAuthentication407Response("Proxy Authentication Required"); session.WebSession.Response = CreateAuthentication407Response("Proxy Authentication Required");
return false; return false;
} }
...@@ -37,7 +37,7 @@ namespace Titanium.Web.Proxy ...@@ -37,7 +37,7 @@ namespace Titanium.Web.Proxy
if (headerValueParts.Length != 2 || !headerValueParts[0].EqualsIgnoreCase(KnownHeaders.ProxyAuthorizationBasic)) if (headerValueParts.Length != 2 || !headerValueParts[0].EqualsIgnoreCase(KnownHeaders.ProxyAuthorizationBasic))
{ {
//Return not authorized //Return not authorized
session.WebSession.Response = SendAuthentication407Response("Proxy Authentication Invalid"); session.WebSession.Response = CreateAuthentication407Response("Proxy Authentication Invalid");
return false; return false;
} }
...@@ -46,7 +46,7 @@ namespace Titanium.Web.Proxy ...@@ -46,7 +46,7 @@ namespace Titanium.Web.Proxy
if (colonIndex == -1) if (colonIndex == -1)
{ {
//Return not authorized //Return not authorized
session.WebSession.Response = SendAuthentication407Response("Proxy Authentication Invalid"); session.WebSession.Response = CreateAuthentication407Response("Proxy Authentication Invalid");
return false; return false;
} }
...@@ -56,7 +56,7 @@ namespace Titanium.Web.Proxy ...@@ -56,7 +56,7 @@ namespace Titanium.Web.Proxy
if (!authenticated) if (!authenticated)
{ {
//Return not authorized //Return not authorized
session.WebSession.Response = SendAuthentication407Response("Proxy Authentication Invalid"); session.WebSession.Response = CreateAuthentication407Response("Proxy Authentication Invalid");
} }
return authenticated; return authenticated;
...@@ -66,12 +66,12 @@ namespace Titanium.Web.Proxy ...@@ -66,12 +66,12 @@ namespace Titanium.Web.Proxy
ExceptionFunc(new ProxyAuthorizationException("Error whilst authorizing request", e, httpHeaders)); ExceptionFunc(new ProxyAuthorizationException("Error whilst authorizing request", e, httpHeaders));
//Return not authorized //Return not authorized
session.WebSession.Response = SendAuthentication407Response("Proxy Authentication Invalid"); session.WebSession.Response = CreateAuthentication407Response("Proxy Authentication Invalid");
return false; return false;
} }
} }
private Response SendAuthentication407Response(string description) private Response CreateAuthentication407Response(string description)
{ {
var response = new Response var response = new Response
{ {
......
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