From 49082656b79cea1d5ea21fe92564eaddd9b5843a Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 14 Jul 2023 22:29:35 +0800 Subject: Refactor: use proper const name. --- bilibili/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bilibili') diff --git a/bilibili/client.go b/bilibili/client.go index 17a42d6..4abad60 100644 --- a/bilibili/client.go +++ b/bilibili/client.go @@ -13,8 +13,8 @@ import ( ) const ( - // kUserAgent: the default user-agent header to use when communicating with bilibili. - kUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + + // userAgent: the default user-agent header to use when communicating with bilibili. + userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" ) @@ -41,7 +41,7 @@ func NewBilibiliWithContext(ctx context.Context, netTypes []types.IpNetType, log return &Bilibili{ logger: logger, - userAgent: kUserAgent, + userAgent: userAgent, http: http.DefaultClient, ctx: ctx, netTypes: nets, -- cgit v1.2.3