Skip to content

Commit

Permalink
Resolves Issue #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Zarzycki committed Feb 8, 2017
1 parent 247f42f commit 57dedaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"net/http"
"net/url"
"path"
"strings"
)

// RequestOptions is the list of options to pass to the request.
Expand All @@ -31,7 +31,7 @@ func (c *Client) RawRequest(verb, p string, ro *RequestOptions) (*http.Request,

// Append the path to the URL.
u := *c.url
u.Path = path.Join(c.url.Path, p)
u.Path = strings.TrimRight(c.url.Path, "/") + "/" + strings.TrimLeft(p, "/")

// Add the token and other params.
var params = make(url.Values)
Expand Down

0 comments on commit 57dedaf

Please sign in to comment.