Skip to content
Snippets Groups Projects
Unverified Commit 4a5da81a authored by Sumner Evans's avatar Sumner Evans
Browse files

linkedingo/request: fix a couple bugs

parent 882927b3
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ func (c *Client) newAuthedRequest(method, urlStr string) *authedRequest {
ar := authedRequest{header: http.Header{}, method: method, client: c}
ar.url, ar.parseErr = url.Parse(urlStr)
if ar.parseErr != nil {
if ar.parseErr == nil {
ar.queryParams = ar.url.Query()
} else {
ar.queryParams = url.Values{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment