Skip to content

Commit

Permalink
feat(user-agent): set user-agent for http calls (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
vareversat authored Feb 17, 2024
1 parent 2e1d707 commit 8136956
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collector/digicert.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func (c *DigicertCollector) FetchDigicertData() (*OrderList, error) {
// This one line implements the authentication required for the task.
req.Header.Add("X-DC-DEVKEY", c.digicertAPIKey)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("User-Agent", "https://github.com/vareversat/digicert_exporter")

// Make request and show output.
client := &http.Client{}
Expand Down

0 comments on commit 8136956

Please sign in to comment.