mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
net: Add option to temporarily accept certs that failed the handshake.
This commit is contained in:
parent
433c154595
commit
6a6662195e
8 changed files with 73 additions and 13 deletions
|
@ -821,6 +821,8 @@ impl FetchResponseListener for ParserContext {
|
|||
let page = page.replace("${reason}", &reason);
|
||||
let page =
|
||||
page.replace("${bytes}", std::str::from_utf8(&bytes).unwrap_or_default());
|
||||
let page =
|
||||
page.replace("${secret}", &net_traits::PRIVILEGED_SECRET.to_string());
|
||||
parser.push_string_input_chunk(page);
|
||||
parser.parse_sync();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue