diff options
Diffstat (limited to 'net/http/http_auth.cc')
-rw-r--r-- | net/http/http_auth.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_auth.cc b/net/http/http_auth.cc index 09214e4..75b55a3 100644 --- a/net/http/http_auth.cc +++ b/net/http/http_auth.cc @@ -169,4 +169,10 @@ std::string HttpAuth::GetAuthorizationHeaderName(Target target) { } } +// static +std::string HttpAuth::GetAuthTargetString( + HttpAuth::Target target) { + return target == HttpAuth::AUTH_PROXY ? "proxy" : "server"; +} + } // namespace net |