Skip to content

Commit

Permalink
Add Provider Header to All Secure Requests (#280)
Browse files Browse the repository at this point in the history
* Add Provider Header to All Secure Requests

* Change to Sysdig-Provider, PR Comment
  • Loading branch information
jacklongsd authored Mar 24, 2023
1 parent 0234a9e commit 0e4534b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sysdig/internal/client/secure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (client *sysdigSecureClient) doSysdigSecureRequest(ctx context.Context, met
request = request.WithContext(ctx)
request.Header.Set("Authorization", "Bearer "+client.SysdigSecureAPIToken)
request.Header.Set("Content-Type", "application/json")
request.Header.Set("Sysdig-Provider", "Terraform")
if client.extraHeaders != nil {
for key, value := range client.extraHeaders {
request.Header.Set(key, value)
Expand Down

0 comments on commit 0e4534b

Please sign in to comment.