Skip to content

Commit

Permalink
fix: --http-payload is not mandatory anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jan 30, 2024
1 parent a1fcfbe commit 0a3c067
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/plugins/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,14 +511,6 @@ impl Plugin for HTTP {
HeaderValue::from_static("application/x-www-form-urlencoded"),
);
}

// check that a payload was provided if needed
if opts.http.http_payload.is_none() {
return Err(format!(
"method {} requires an --http-payload value",
self.method
));
}
}

self.payload = if let Some(payload) = &opts.http.http_payload {
Expand Down

0 comments on commit 0a3c067

Please sign in to comment.