mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Show HTTP response headers in debug output.
This commit is contained in:
parent
ca3cd64d6b
commit
525e9c08c8
1 changed files with 7 additions and 0 deletions
|
@ -1095,6 +1095,13 @@ fn http_network_fetch(request: &Request,
|
|||
Err(error) => return Response::network_error(error),
|
||||
};
|
||||
|
||||
if log_enabled!(log::LogLevel::Info) {
|
||||
info!("response for {}", url);
|
||||
for header in res.response.headers.iter() {
|
||||
info!(" - {}", header);
|
||||
}
|
||||
}
|
||||
|
||||
let mut response = Response::new(url.clone());
|
||||
response.status = Some(res.response.status);
|
||||
response.raw_status = Some((res.response.status_raw().0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue