From ae3982faaae208bdf3dda9caef965b9b2cb71a5c Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 25 Oct 2018 19:03:42 +0800 Subject: [PATCH] Patch -> PATCH --- base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.go b/base.go index d070b35..ce7bc02 100644 --- a/base.go +++ b/base.go @@ -39,7 +39,7 @@ func buildBodyRequest(ver, rawurl string, body *Body) *http.Request { } } else { if contentType == "" { - if ver == "POST" || ver == "PUT" || ver == "Patch" { + if ver == "POST" || ver == "PUT" || ver == "PATCH" { contentType = TypeURLENCODED } }