@@ -29,15 +29,15 @@ private async Task<bool> CheckAuthorization(SessionEventArgs session)
2929 var header = httpHeaders . GetFirstHeader ( KnownHeaders . ProxyAuthorization ) ;
3030 if ( header == null )
3131 {
32- session . WebSession . Response = SendAuthentication407Response ( "Proxy Authentication Required" ) ;
32+ session . WebSession . Response = CreateAuthentication407Response ( "Proxy Authentication Required" ) ;
3333 return false ;
3434 }
3535
3636 var headerValueParts = header . Value . Split ( ProxyConstants . SpaceSplit ) ;
3737 if ( headerValueParts . Length != 2 || ! headerValueParts [ 0 ] . EqualsIgnoreCase ( KnownHeaders . ProxyAuthorizationBasic ) )
3838 {
3939 //Return not authorized
40- session . WebSession . Response = SendAuthentication407Response ( "Proxy Authentication Invalid" ) ;
40+ session . WebSession . Response = CreateAuthentication407Response ( "Proxy Authentication Invalid" ) ;
4141 return false ;
4242 }
4343
@@ -46,7 +46,7 @@ private async Task<bool> CheckAuthorization(SessionEventArgs session)
4646 if ( colonIndex == - 1 )
4747 {
4848 //Return not authorized
49- session . WebSession . Response = SendAuthentication407Response ( "Proxy Authentication Invalid" ) ;
49+ session . WebSession . Response = CreateAuthentication407Response ( "Proxy Authentication Invalid" ) ;
5050 return false ;
5151 }
5252
@@ -56,7 +56,7 @@ private async Task<bool> CheckAuthorization(SessionEventArgs session)
5656 if ( ! authenticated )
5757 {
5858 //Return not authorized
59- session . WebSession . Response = SendAuthentication407Response ( "Proxy Authentication Invalid" ) ;
59+ session . WebSession . Response = CreateAuthentication407Response ( "Proxy Authentication Invalid" ) ;
6060 }
6161
6262 return authenticated ;
@@ -66,12 +66,12 @@ private async Task<bool> CheckAuthorization(SessionEventArgs session)
6666 ExceptionFunc ( new ProxyAuthorizationException ( "Error whilst authorizing request" , e , httpHeaders ) ) ;
6767
6868 //Return not authorized
69- session . WebSession . Response = SendAuthentication407Response ( "Proxy Authentication Invalid" ) ;
69+ session . WebSession . Response = CreateAuthentication407Response ( "Proxy Authentication Invalid" ) ;
7070 return false ;
7171 }
7272 }
7373
74- private Response SendAuthentication407Response ( string description )
74+ private Response CreateAuthentication407Response ( string description )
7575 {
7676 var response = new Response
7777 {
0 commit comments