mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-20 01:47:58 +00:00
feat: add user-agent http header for thirdparty sdks
This commit is contained in:
@@ -17,7 +17,7 @@ type Client struct {
|
||||
func NewClient(apiToken string) *Client {
|
||||
client := resty.New().
|
||||
SetBaseURL("https://api.cachefly.com/api/2.5").
|
||||
SetHeader("x-cf-authorization", "Bearer "+apiToken)
|
||||
SetHeader("X-CF-Authorization", "Bearer "+apiToken)
|
||||
|
||||
return &Client{
|
||||
client: client,
|
||||
|
Reference in New Issue
Block a user