diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 02:48:15 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 02:48:15 +0000 |
commit | d1ec590811a1d4e593c1ba7ad52cee26cef16305 (patch) | |
tree | f79245a0252441ad145e3b41c991b3ebd7e28eb9 /net/base | |
parent | 3431b8926e2332f47f5e5eb6f78f512ca6ba286c (diff) | |
download | chromium_src-d1ec590811a1d4e593c1ba7ad52cee26cef16305.zip chromium_src-d1ec590811a1d4e593c1ba7ad52cee26cef16305.tar.gz chromium_src-d1ec590811a1d4e593c1ba7ad52cee26cef16305.tar.bz2 |
Sanitize proxy response codes to CONNECT requests. For
anything other than 200 (success) or 400-599 (error), we
rewrite the response code as 500 (internal server error)
to prevent any special handling of the proxy's response to
CONNECT by mistake.
Add a new error code ERR_UNEXPECTED_SERVER_AUTH for a 401
response to a CONNECT request.
Fix nits reported by cpplint.py.
R=darin,eroman
BUG=7338
Review URL: http://codereview.chromium.org/21158
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/net_error_list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index 49ca641..c472f54 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -227,6 +227,10 @@ NET_ERROR(RESPONSE_HEADERS_TOO_BIG, -325) // The PAC requested by HTTP did not have a valid status code (non-200). NET_ERROR(PAC_STATUS_NOT_OK, -326) +// The response was 401 (Unauthorized), yet the request was a CONNECT request +// to a proxy. +NET_ERROR(UNEXPECTED_SERVER_AUTH, -327) + // The cache does not have the requested entry. NET_ERROR(CACHE_MISS, -400) |