Skip to content

Commit

Permalink
Merge pull request #66 from snyk-tech-services/minor/userAgent
Browse files Browse the repository at this point in the history
minor: add user agent to requests
  • Loading branch information
mathild3r authored Nov 1, 2021
2 parents 4e03abb + bcc8bc3 commit e75f441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snyk_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func makeSnykAPIRequest(verb string, endpointURL string, snykToken string, body

request.Header.Add("Content-Type", "application/json")
request.Header.Add("Authorization", "token "+snykToken)
request.Header.Add("userAgentPrefix", "snyk-jira-tickets-for-new-vulns")

client := &http.Client{}
response, err := client.Do(request)
Expand Down

0 comments on commit e75f441

Please sign in to comment.