mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Stop panicking when trying to load ftp URLs.
This commit is contained in:
parent
634a3989ad
commit
479cf1ef23
1 changed files with 2 additions and 2 deletions
|
@ -492,8 +492,8 @@ fn basic_fetch<UI: 'static + UIProvider>(request: Rc<Request>,
|
||||||
},
|
},
|
||||||
|
|
||||||
"ftp" => {
|
"ftp" => {
|
||||||
// XXXManishearth handle these
|
debug!("ftp is not implemented");
|
||||||
panic!("Unimplemented scheme for Fetch")
|
Response::network_error(NetworkError::Internal("Unexpected scheme".into()))
|
||||||
},
|
},
|
||||||
|
|
||||||
_ => Response::network_error(NetworkError::Internal("Unexpected scheme".into()))
|
_ => Response::network_error(NetworkError::Internal("Unexpected scheme".into()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue