Skip to content

Commit

Permalink
Merge pull request #3 from chatterchats/patch/RequestUserAgent
Browse files Browse the repository at this point in the history
Update generateRequest to include User-Agent
  • Loading branch information
Millefeuille42 authored Apr 4, 2024
2 parents 23bd6a6 + 8b9edd5 commit 5e48528
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/shared/helldivers/lib/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (c *Client) generateRequest(method string, endpoint string, data []byte) (*
return nil, err
}
req.Header.Set("Accept-Language", "en-US")
req.Header.Set("User-Agent", "Helldivers II Tools")

return req, err
}
Expand Down

0 comments on commit 5e48528

Please sign in to comment.