Skip to content

Commit

Permalink
bugfix: support lowercase of http method (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanKung authored Jul 25, 2023
1 parent 2b7312b commit 4a5ad18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/bin/rings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ struct SendHttpCommand {

name: String,

#[arg(default_value = "get", long, short = 'X', help = "request method")]
#[arg(default_value = "GET", long, short = 'X', help = "request method")]
method: String,

#[arg(default_value = "/")]
Expand Down Expand Up @@ -538,7 +538,7 @@ async fn main() -> anyhow::Result<()> {
.send_http_request_message(
args.to_did.as_str(),
args.name.as_str(),
http::Method::from_str(args.method.as_str())?,
http::Method::from_str(args.method.to_uppercase().as_str())?,
args.path.as_str(),
args.timeout.into(),
&args
Expand Down

0 comments on commit 4a5ad18

Please sign in to comment.