Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
fix(put): Ensure signed form for PUT as well as POST
Browse files Browse the repository at this point in the history
Fixes: MaxCDN#13
  • Loading branch information
stooj committed Sep 3, 2020
1 parent 9f915d2 commit e493de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maxcdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (max *MaxCDN) Request(method, endpoint string, form url.Values) (*http.Resp
}

// Only post needs a signed form.
if method != "POST" {
if method != "POST" && method != "PUT" {
form = nil
}
}
Expand Down

0 comments on commit e493de6

Please # to comment.