1
Fork 0

net::http::new_request: exhaustive switch

This commit is contained in:
Drew DeVault 2023-10-07 12:14:26 +02:00
parent 372eb47e4a
commit 78a5d982eb

View file

@ -57,6 +57,7 @@ fn new_request(client: *client, method: str, target: *uri::uri) request = {
req.target.port = 80;
case "https" =>
req.target.port = 443;
case => abort("net::http: unsupported URL scheme");
};
};