From 919be6406e16dc50d413a42a65de2ee7b445ac99 Mon Sep 17 00:00:00 2001 From: izumin5210 Date: Wed, 13 Nov 2019 13:12:29 +0900 Subject: [PATCH] Fix error for go1.12 --- config_go1.12.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_go1.12.go b/config_go1.12.go index 304c432..4fc0402 100644 --- a/config_go1.12.go +++ b/config_go1.12.go @@ -10,7 +10,7 @@ import ( func init() { newRequest = func(ctx context.Context, meth, url string, body io.Reader) (*http.Request, error) { - req, err := http.NewRequest(meth, url.String(), body) + req, err := http.NewRequest(meth, url, body) if err != nil { return nil, err }