aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-09-23 12:13:33 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-09-23 14:50:50 -0700
commit1c6de361b735a80034edb719d997e6c8b6cd8fef (patch)
tree32d6ee00b1a41571f1bbb15af7786350ed456449 /src/components/script/script_task.rs
parent9bd0e2a3ac41ee563981f37567b73ca309216568 (diff)
downloadservo-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.rs4
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.
//