Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Changed http to protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
jspspike committed Aug 12, 2020
1 parent ad9bf05 commit 087882b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/dev/edge/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn preview_request(
client: HyperClient<HttpsConnector<HttpConnector>>,
preview_token: String,
host: String,
http: Protocol,
protocol: Protocol,
) -> ResponseFuture {
let (mut parts, body) = req.into_parts();

Expand All @@ -33,7 +33,7 @@ fn preview_request(
HeaderValue::from_str(&preview_token).expect("Could not create token header"),
);

parts.uri = match http {
parts.uri = match protocol {
Protocol::Http => format!("http://{}{}", host, path),
Protocol::Https => format!("https://{}{}", host, path),
}
Expand Down

0 comments on commit 087882b

Please sign in to comment.