feat: add user-agent http header for thirdparty sdks
This commit is contained in:
@@ -18,8 +18,9 @@ type Client struct {
|
||||
func NewClient(serverUrl, apiKey, apiSecret string) *Client {
|
||||
client := resty.New().
|
||||
SetBaseURL(strings.TrimRight(serverUrl, "/")).
|
||||
SetHeader("api-key", apiKey).
|
||||
SetHeader("api-secret", apiSecret)
|
||||
SetHeader("User-Agent", "certimate").
|
||||
SetHeader("API-Key", apiKey).
|
||||
SetHeader("API-Secret", apiSecret)
|
||||
|
||||
return &Client{
|
||||
client: client,
|
||||
|
||||
Reference in New Issue
Block a user