mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Binds name instead of inlining value for readability
This commit is contained in:
parent
918f8a7760
commit
04c012dfbf
1 changed files with 7 additions and 5 deletions
|
@ -339,11 +339,13 @@ fn update_sts_list_from_response(url: &Url, response: &HttpResponse, resource_mg
|
||||||
IncludeSubdomains::NotIncluded
|
IncludeSubdomains::NotIncluded
|
||||||
};
|
};
|
||||||
|
|
||||||
resource_mgr_chan.send(
|
let msg = ControlMsg::SetHSTSEntryForHost(
|
||||||
ControlMsg::SetHSTSEntryForHost(
|
host.to_string(),
|
||||||
host.to_string(), include_subdomains, header.max_age
|
include_subdomains,
|
||||||
)
|
header.max_age
|
||||||
).unwrap();
|
);
|
||||||
|
|
||||||
|
resource_mgr_chan.send(msg).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue