Skip to content

Commit

Permalink
fix(request): fix request url
Browse files Browse the repository at this point in the history
  • Loading branch information
sorcererxw authored May 18, 2021
2 parents 34f8444 + 48d136b commit df84a5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ import (
"encoding/json"
"io"
"net/http"
pathpkg "path"
"strconv"
"time"
)
@@ -150,7 +149,9 @@ func (c *Client) request(ctx context.Context, method string, path string, in int
}
body = bytes.NewBuffer(b)
}
req, err := http.NewRequestWithContext(ctx, method, pathpkg.Join(c.endpoint, path), body)

requestURL := c.endpoint + path
req, err := http.NewRequestWithContext(ctx, method, requestURL, body)
if err != nil {
return err
}

0 comments on commit df84a5f

Please sign in to comment.