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 e453b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,13 @@ fn run() -> Result<(), failure::Error> {
.arg(
Arg::with_name("local-protocol")
.help("Takes requests for local server via https instead of http")
.long("local-https")
.long("local-protocol")
.takes_value(true)
)
.arg(
Arg::with_name("upstream-protocol")
.help("Sends requests to host via http instead of https")
.long("upstream-http")
.long("upstream-protocol")
.takes_value(true)
)
.arg(verbose_arg.clone())
Expand Down

0 comments on commit e453b8f

Please sign in to comment.