diff options
Diffstat (limited to 'net/http/http_auth.cc')
-rw-r--r-- | net/http/http_auth.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/http/http_auth.cc b/net/http/http_auth.cc index 2e42b06..47a13be2 100644 --- a/net/http/http_auth.cc +++ b/net/http/http_auth.cc @@ -86,6 +86,18 @@ HttpAuth::AuthorizationResult HttpAuth::HandleChallengeResponse( return HttpAuth::AUTHORIZATION_RESULT_REJECT; } +HttpAuth::ChallengeTokenizer::ChallengeTokenizer( + std::string::const_iterator begin, + std::string::const_iterator end) + : begin_(begin), + end_(end), + scheme_begin_(begin), + scheme_end_(begin), + params_begin_(end), + params_end_(end) { + Init(begin, end); +} + HttpUtil::NameValuePairsIterator HttpAuth::ChallengeTokenizer::param_pairs() const { return HttpUtil::NameValuePairsIterator(params_begin_, params_end_, ','); |