Add PROXY-AUTHORIZATION header

Added the PROXY-AUTHORIZATION header so that proxy username and passwords can be decoded. It follows the same syntax as the AUTHORIZATION header.
This commit is contained in:
jshlbrd 2015-03-25 16:07:27 -07:00
parent b9e2b7bef9
commit fbff3a04ee

View file

@ -257,7 +257,7 @@ event http_header(c: connection, is_orig: bool, name: string, value: string) &pr
add c$http$proxied[fmt("%s -> %s", name, value)]; add c$http$proxied[fmt("%s -> %s", name, value)];
} }
else if ( name == "AUTHORIZATION" ) else if ( name == "AUTHORIZATION" || name == "PROXY-AUTHORIZATION" )
{ {
if ( /^[bB][aA][sS][iI][cC] / in value ) if ( /^[bB][aA][sS][iI][cC] / in value )
{ {