mirror of
https://github.com/servo/servo.git
synced 2025-10-15 16:00:28 +01:00
Extract content type and character set from HTTP response headers
We don't use this information anywhere, yet.
This commit is contained in:
parent
ec2111edbf
commit
f73e48b32f
3 changed files with 29 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue