Skip to content

Commit

Permalink
Add user-agent to be able to identify the bot
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed Dec 4, 2022
1 parent ba417ac commit 277051c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func addServer(server string) error {
return err
}
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
req.Header.Set("User-Agent", "shadowmere-helper-bot")
req.SetBasicAuth(ServiceUserName, ServicePassword)
resp, err := client.Do(req)
if err != nil {
Expand Down

0 comments on commit 277051c

Please sign in to comment.