diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-13 20:06:48 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-13 20:06:48 +0000 |
commit | 87c99b6ad49f48645399cbb2a85bb281859c6795 (patch) | |
tree | cf7b4e06b4ca3be1c837aeb2ded63640e38541ef /net/http/http_auth.cc | |
parent | bbbe5d7dd70dabe0d728e789326879e02f63d040 (diff) | |
download | chromium_src-87c99b6ad49f48645399cbb2a85bb281859c6795.zip chromium_src-87c99b6ad49f48645399cbb2a85bb281859c6795.tar.gz chromium_src-87c99b6ad49f48645399cbb2a85bb281859c6795.tar.bz2 |
MAC Cookies (patch 4 of N)
Wire up the pieces of MAC cookies (behind the --enable-mac-cookies flag).
Also, update the syntax of the header now that issuer has been removed and the
timestamp and nonce are combined into one field.
Review URL: http://codereview.chromium.org/6969050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth.cc')
-rw-r--r-- | net/http/http_auth.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/http/http_auth.cc b/net/http/http_auth.cc index d5d6e0c..23e2663 100644 --- a/net/http/http_auth.cc +++ b/net/http/http_auth.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -13,6 +13,7 @@ #include "net/http/http_auth_handler_digest.h" #include "net/http/http_auth_handler_negotiate.h" #include "net/http/http_auth_handler_ntlm.h" +#include "net/http/http_request_headers.h" #include "net/http/http_response_headers.h" #include "net/http/http_util.h" @@ -142,9 +143,9 @@ std::string HttpAuth::GetChallengeHeaderName(Target target) { std::string HttpAuth::GetAuthorizationHeaderName(Target target) { switch (target) { case AUTH_PROXY: - return "Proxy-Authorization"; + return HttpRequestHeaders::kProxyAuthorization; case AUTH_SERVER: - return "Authorization"; + return HttpRequestHeaders::kAuthorization; default: NOTREACHED(); return ""; |