diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-24 03:32:37 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-24 03:32:37 +0000 |
commit | 0a17aab348d34a084f16de7cdb33f76074f10582 (patch) | |
tree | d97c1d689528b80693d51df0774d80e0cdf5065e /net/http/http_response_headers_unittest.cc | |
parent | 549093f274ab2bc123f31ce4f422b19ad711417a (diff) | |
download | chromium_src-0a17aab348d34a084f16de7cdb33f76074f10582.zip chromium_src-0a17aab348d34a084f16de7cdb33f76074f10582.tar.gz chromium_src-0a17aab348d34a084f16de7cdb33f76074f10582.tar.bz2 |
Add support for 308 permanent redirects.
See https://datatracker.ietf.org/doc/draft-reschke-http-status-308/
This should not break 308 Resume Incomplete responses, since they
don't have Location headers.
R=willchan@chromium.org
BUG=109012
Review URL: https://codereview.chromium.org/9816011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265835 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers_unittest.cc')
-rw-r--r-- | net/http/http_response_headers_unittest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc index 361b5ee..fe656e6 100644 --- a/net/http/http_response_headers_unittest.cc +++ b/net/http/http_response_headers_unittest.cc @@ -812,6 +812,11 @@ TEST(HttpResponseHeadersTest, RequiresValidation) { "\n", false }, + // another cached permanent redirect + { "HTTP/1.1 308 Permanent Redirect\n" + "\n", + false + }, // cached redirect: not reusable even though by default it would be { "HTTP/1.1 300 Multiple Choices\n" "Cache-Control: no-cache\n" |