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

@ -54,7 +54,7 @@ fn load(url: Url, start_chan: Chan<LoadResponse>) {
}
let mut metadata = Metadata::default(url);
// We will set other fields here.
metadata.set_content_type(&response.headers.content_type);
let progress_chan = start_sending(start_chan, metadata);
loop {