diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-09-23 12:13:33 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-09-23 14:50:50 -0700 |
commit | 1c6de361b735a80034edb719d997e6c8b6cd8fef (patch) | |
tree | 32d6ee00b1a41571f1bbb15af7786350ed456449 /src/components/net/image_cache_task.rs | |
parent | 9bd0e2a3ac41ee563981f37567b73ca309216568 (diff) | |
download | servo-1c6de361b735a80034edb719d997e6c8b6cd8fef.tar.gz servo-1c6de361b735a80034edb719d997e6c8b6cd8fef.zip |
Handle HTTP 3xx redirects
Fixes #973.
Diffstat (limited to 'src/components/net/image_cache_task.rs')
-rw-r--r-- | src/components/net/image_cache_task.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/net/image_cache_task.rs b/src/components/net/image_cache_task.rs index a6f3dfb529f..ada3fe53678 100644 --- a/src/components/net/image_cache_task.rs +++ b/src/components/net/image_cache_task.rs @@ -444,6 +444,7 @@ fn load_image_data(url: Url, resource_task: ResourceTask) -> Result<~[u8], ()> { loop { match response_port.recv() { + resource_task::UrlChange(*) => (), // don't care that URL changed resource_task::Payload(data) => { image_data.push_all(data); } |