mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 22:14:53 +00:00
feat: add user-agent http header for thirdparty sdks
This commit is contained in:
@@ -19,7 +19,8 @@ type Client struct {
|
||||
func NewClient(apiToken string) *Client {
|
||||
client := resty.New().
|
||||
SetBaseURL("https://cdn.api.baishan.com").
|
||||
SetHeader("token", apiToken)
|
||||
SetHeader("User-Agent", "certimate").
|
||||
SetHeader("Token", apiToken)
|
||||
|
||||
return &Client{
|
||||
client: client,
|
||||
|
Reference in New Issue
Block a user