diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-11-02 11:51:47 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-11-02 16:15:26 +0100 |
commit | 479cf1ef23a33a2322c94b42af8c5bb2b426a6ff (patch) | |
tree | 1ef6abc3cb3defb0c5254758dd37859476759b7c /components/net/fetch/methods.rs | |
parent | 634a3989ad53d875997ba2e3f5d4550009ea0415 (diff) | |
download | servo-479cf1ef23a33a2322c94b42af8c5bb2b426a6ff.tar.gz servo-479cf1ef23a33a2322c94b42af8c5bb2b426a6ff.zip |
Stop panicking when trying to load ftp URLs.
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r-- | components/net/fetch/methods.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 952ec3a91e8..83bd73bbf74 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -492,8 +492,8 @@ fn basic_fetch<UI: 'static + UIProvider>(request: Rc<Request>, }, "ftp" => { - // XXXManishearth handle these - panic!("Unimplemented scheme for Fetch") + debug!("ftp is not implemented"); + Response::network_error(NetworkError::Internal("Unexpected scheme".into())) }, _ => Response::network_error(NetworkError::Internal("Unexpected scheme".into())) |