Extract content type and character set from HTTP response headers

We don't use this information anywhere, yet.
This commit is contained in:
Keegan McAllister 2013-10-09 18:12:12 -07:00
parent ec2111edbf
commit f73e48b32f
3 changed files with 29 additions and 3 deletions

View file

@ -336,6 +336,8 @@ pub fn parse_html(cx: *JSContext,
resource_task.send(Load(url.clone(), input_chan));
let load_response = input_port.recv();
debug!("Fetched page; metadata is %?", load_response.metadata);
let url2 = load_response.metadata.final_url.clone();
let url3 = url2.clone();