Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
Signed-off-by: M-Cosmosss <[email protected]>
  • Loading branch information
M-Cosmosss committed May 18, 2023
1 parent 83f97bd commit a10478e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ func (c *Client) SetCookieJar(jar http.CookieJar) *Client {
return c
}

// GetCookiesFromJar get cookies from the underlying `http.Client`'s `CookieJar`.
func (c *Client) GetCookiesFromJar(url string) ([]*http.Cookie, error) {
// GetCookies get cookies from the underlying `http.Client`'s `CookieJar`.
func (c *Client) GetCookies(url string) ([]*http.Cookie, error) {
if c.httpClient.Jar == nil {
return nil, errors.New("cookie jar is not enabled")
}
Expand Down

0 comments on commit a10478e

Please sign in to comment.