This commit is contained in:
Omid Rad 2021-07-12 19:05:11 +02:00
parent ecabeb552f
commit 7793dd7ed0
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ where
let method = if is_redirect {
method.take().unwrap()
} else {
match method.take().unwrap() {
let method = method.take().unwrap();
match method {
Method::GET | Method::HEAD => method,
_ => Method::GET,
}