Skip to content

Commit

Permalink
Send as body with PATCH and DELETE methods by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed May 22, 2023
1 parent fcc9309 commit 5ba2f13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ impl<'a> RequestDefaults {

let mut injection_place = if headers_discovery {
InjectionPlace::Headers
} else if (method == "POST" || method == "PUT") && !invert
|| (method != "POST" && method != "PUT" && invert) {
} else if (method == "POST" || method == "PUT" || method == "PATCH" || method == "DELETE") && !invert
|| (method != "POST" && method != "PUT" && method != "PATCH" && method != "DELETE" && invert) {
InjectionPlace::Body
} else {
InjectionPlace::Path
Expand Down

0 comments on commit 5ba2f13

Please sign in to comment.