diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 23:38:42 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 23:38:42 +0000 |
commit | 4e66ed1ae52ab2e894dfebed674c099f7150b7d3 (patch) | |
tree | 5c5f893942aaa4bd4713a378908d21154a8a8241 /net/data | |
parent | d35d20d1b1171219a41e2001fadc6857ae257e10 (diff) | |
download | chromium_src-4e66ed1ae52ab2e894dfebed674c099f7150b7d3.zip chromium_src-4e66ed1ae52ab2e894dfebed674c099f7150b7d3.tar.gz chromium_src-4e66ed1ae52ab2e894dfebed674c099f7150b7d3.tar.bz2 |
Change URLRequest to return net::ERR_INVALID_URL on redirects to invalid urls.
BUG=http://crbug.com/17126
TEST=net_unittests
Review URL: http://codereview.chromium.org/159034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r-- | net/data/url_request_unittest/redirect-to-invalid-url.html | 1 | ||||
-rw-r--r-- | net/data/url_request_unittest/redirect-to-invalid-url.html.mock-http-headers | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/net/data/url_request_unittest/redirect-to-invalid-url.html b/net/data/url_request_unittest/redirect-to-invalid-url.html new file mode 100644 index 0000000..ce01362 --- /dev/null +++ b/net/data/url_request_unittest/redirect-to-invalid-url.html @@ -0,0 +1 @@ +hello diff --git a/net/data/url_request_unittest/redirect-to-invalid-url.html.mock-http-headers b/net/data/url_request_unittest/redirect-to-invalid-url.html.mock-http-headers new file mode 100644 index 0000000..e106b6c --- /dev/null +++ b/net/data/url_request_unittest/redirect-to-invalid-url.html.mock-http-headers @@ -0,0 +1,2 @@ +HTTP/1.1 302 Found +Location: http://user:pass@/ |