Skip to content

Commit

Permalink
Fix error for go1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
izumin5210 committed Nov 13, 2019
1 parent 997a572 commit 919be64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_go1.12.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 919be64

Please sign in to comment.