1
This commit is contained in:
@@ -102,6 +102,9 @@ func (a *API) AccessAPI(action string, params map[string]interface{}, body strin
|
||||
request, _ = http.NewRequest(http.MethodGet, fullURL, nil)
|
||||
} else {
|
||||
request, _ = http.NewRequest(http.MethodPost, fullURL, strings.NewReader(body))
|
||||
if strings.Contains(fullURL, "wxa/generate_urllink") {
|
||||
request.Header.Set("Content-Type", "application/json")
|
||||
}
|
||||
}
|
||||
request.Close = true // todo try to fix EOF error when accessing weixin api.
|
||||
return request
|
||||
|
||||
Reference in New Issue
Block a user