mirror of
https://github.com/usual2970/certimate.git
synced 2025-09-16 05:04:32 +00:00
feat: add user-agent http header for thirdparty sdks
This commit is contained in:
@@ -17,7 +17,8 @@ type Client struct {
|
||||
func NewClient(apiKey string) *Client {
|
||||
client := resty.New().
|
||||
SetBaseURL("https://api.v2.rainyun.com").
|
||||
SetHeader("x-api-key", apiKey)
|
||||
SetHeader("User-Agent", "certimate").
|
||||
SetHeader("X-API-Key", apiKey)
|
||||
|
||||
return &Client{
|
||||
client: client,
|
||||
|
Reference in New Issue
Block a user