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 }