mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Don't panic on https #2104
This commit is contained in:
parent
58efe0bf75
commit
c63ae6f11d
2 changed files with 12 additions and 1 deletions
|
@ -52,7 +52,11 @@ fn load(mut url: Url, start_chan: Sender<LoadResponse>) {
|
||||||
|
|
||||||
redirected_to.insert(url.clone());
|
redirected_to.insert(url.clone());
|
||||||
|
|
||||||
assert!("http" == url.scheme);
|
if "http" != url.scheme {
|
||||||
|
info!("{:s} request, but we don't support that scheme", url.scheme);
|
||||||
|
send_error(url, start_chan);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
info!("requesting {:s}", url.to_str());
|
info!("requesting {:s}", url.to_str());
|
||||||
|
|
||||||
|
|
7
src/test/html/https.html
Normal file
7
src/test/html/https.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<img src="https://some-site.org/some-image.png"/>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue