summaryrefslogtreecommitdiff
path: root/bilibili/client.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-14 22:29:35 +0800
committerKeuin <[email protected]>2023-07-14 22:29:35 +0800
commit49082656b79cea1d5ea21fe92564eaddd9b5843a (patch)
treee0d98cfd17e3c0fe044424d32396068b25e4096d /bilibili/client.go
parent2ace07d2d88c01a56b4d0f3194bd74a518a769c8 (diff)
Refactor: use proper const name.0.4.0
Diffstat (limited to 'bilibili/client.go')
-rw-r--r--bilibili/client.go6
1 files changed, 3 insertions, 3 deletions
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,