This repository was archived by the owner on Jun 8, 2019. It is now read-only.
forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 52
ListPullRequestsOptions does not work? #161
Copy link
Copy link
Open
Labels
Description
Line 77 in 7d954d7
return prs, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/pulls", owner, repo), jsonHeader, bytes.NewReader(body), &prs) |
How does this work?
Line 109 in 7d954d7
func (c *Client) getParsedResponse(method, path string, header http.Header, body io.Reader, obj interface{}) error { |
Line 73 in 7d954d7
func (c *Client) getResponse(method, path string, header http.Header, body io.Reader) ([]byte, error) { |
Line 55 in 7d954d7
func (c *Client) doRequest(method, path string, header http.Header, body io.Reader) (*http.Response, error) { |
You passed body as a JSON to a GET request and expect it will be converted to a query string?