net::http::new_request: exhaustive switch
This commit is contained in:
parent
372eb47e4a
commit
78a5d982eb
|
@ -57,6 +57,7 @@ fn new_request(client: *client, method: str, target: *uri::uri) request = {
|
||||||
req.target.port = 80;
|
req.target.port = 80;
|
||||||
case "https" =>
|
case "https" =>
|
||||||
req.target.port = 443;
|
req.target.port = 443;
|
||||||
|
case => abort("net::http: unsupported URL scheme");
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue