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/script/script_task.rs | |
parent | 9bd0e2a3ac41ee563981f37567b73ca309216568 (diff) | |
download | servo-1c6de361b735a80034edb719d997e6c8b6cd8fef.tar.gz servo-1c6de361b735a80034edb719d997e6c8b6cd8fef.zip |
Handle HTTP 3xx redirects
Fixes #973.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 8c800727657..da6f75f02d9 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -653,7 +653,7 @@ impl ScriptTask { page.next_subpage_id.clone(), self.constellation_chan.clone()); - let HtmlParserResult {root, discovery_port} = html_parsing_result; + let HtmlParserResult {root, discovery_port, url: final_url} = html_parsing_result; let document = HTMLDocument::new(root, Some(window)); @@ -662,7 +662,7 @@ impl ScriptTask { document: document, window: window, }); - page.url = Some((url.clone(), true)); + page.url = Some((final_url, true)); // Send style sheets over to layout. // |