Don't panic on https #2104

This commit is contained in:
Philip Horger 2014-04-18 10:01:42 -07:00
parent 58efe0bf75
commit c63ae6f11d
2 changed files with 12 additions and 1 deletions

View file

@ -52,7 +52,11 @@ fn load(mut url: Url, start_chan: Sender<LoadResponse>) {
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());

7
src/test/html/https.html Normal file
View file

@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
<img src="https://some-site.org/some-image.png"/>
</body>
</html>