mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-19 10:12:54 +02:00
[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:
3
vendor/code.gitea.io/sdk/gitea/client.go
generated
vendored
3
vendor/code.gitea.io/sdk/gitea/client.go
generated
vendored
@ -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.
|
||||
|
Reference in New Issue
Block a user