From e493de68c6250a5f57b8be9ec85de4c46b7fc564 Mon Sep 17 00:00:00 2001 From: stoo johnston Date: Thu, 3 Sep 2020 15:44:27 +0100 Subject: [PATCH] fix(put): Ensure signed form for PUT as well as POST Fixes: https://github.com/MaxCDN/go-maxcdn/issues/13 --- maxcdn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxcdn.go b/maxcdn.go index 470cbf3..552a8f9 100644 --- a/maxcdn.go +++ b/maxcdn.go @@ -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 } }