Release arguments in Request

This commit is contained in:
Maxim Lebedev 2018-03-14 13:59:38 +05:00
parent c9c7dca2cf
commit fd6c8c78f2
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ type response struct {
}
func request(method, path string, args *http.Args) (*response, error) {
defer http.ReleaseArgs(args)
requestURI := &url.URL{
Scheme: "https",
Host: "api.telegra.ph",