Skip to content

Commit

Permalink
Fix http client used in Client.CheckUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 13, 2022
1 parent 0c4681a commit 12fa61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const CheckUpdateURL = "https://web.whatsapp.com/check-update"
// CheckUpdate asks the WhatsApp servers if there is an update available
// (using the HTTP client and proxy settings of this whatsmeow Client instance).
func (cli *Client) CheckUpdate() (respData CheckUpdateResponse, err error) {
return CheckUpdate(http.DefaultClient)
return CheckUpdate(cli.http)
}

// CheckUpdate asks the WhatsApp servers if there is an update available.
Expand Down

0 comments on commit 12fa61f

Please sign in to comment.