From 248275c757ea934e306751bda48aae9a53a62cbd Mon Sep 17 00:00:00 2001 From: medcl Date: Fri, 17 Jan 2020 19:05:27 +0800 Subject: [PATCH] update http to support new version --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 3c0c406..1bacdc5 100644 --- a/http.go +++ b/http.go @@ -42,7 +42,7 @@ func Get(url string,auth *Auth,proxy string) (*http.Response, string, []error) { request.SetBasicAuth(auth.User,auth.Pass) } - request.Header["Content-Type"]= "application/json" + //request.Header["Content-Type"]= "application/json" request.Header.Set("Content-Type", "application/json") if(len(proxy)>0){