[Vendor] Update gitea go-sdk to 2020-01-03 (#81)

update sdk to v0.0.0-20200103062250-c7686bd633c6

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: sapk <sapk@noreply.gitea.io>
Reviewed-by: mrsdizzie <info@mrsdizzie.com>
This commit is contained in:
6543
2020-01-04 01:44:33 +00:00
committed by Lunny Xiao
parent 6e85b47f7c
commit 3c66a7af24
8 changed files with 86 additions and 13 deletions

View File

@ -39,9 +39,10 @@ func NewClient(url, token string) *Client {
}
// NewClientWithHTTP creates an API client with a custom http client
func NewClientWithHTTP(url string, httpClient *http.Client) {
func NewClientWithHTTP(url string, httpClient *http.Client) *Client {
client := NewClient(url, "")
client.client = httpClient
return client
}
// SetHTTPClient replaces default http.Client with user given one.