Skip to content

Commit

Permalink
NO-ISSUE Use GetVersion in deprecated client
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 committed Dec 25, 2024
1 parent 5b5afc3 commit 071c296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linebot/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (client *Client) url(base *url.URL, endpoint string) string {

func (client *Client) do(ctx context.Context, req *http.Request) (*http.Response, error) {
req.Header.Set("Authorization", "Bearer "+client.channelToken)
req.Header.Set("User-Agent", "LINE-BotSDK-Go/"+version)
req.Header.Set("User-Agent", "LINE-BotSDK-Go/"+GetVersion())
if len(client.retryKeyID) > 0 {
req.Header.Set("X-Line-Retry-Key", client.retryKeyID)
}
Expand Down

0 comments on commit 071c296

Please sign in to comment.