Skip to content

Commit

Permalink
Added a specific james user agent to http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
FnuGk committed Dec 22, 2020
1 parent d2b8038 commit 494773d
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 @@ -136,6 +136,7 @@ func prerun(_ *cobra.Command, _ []string) {
func httpDo(req *http.Request) (*http.Response, error) {
backOff := time.Millisecond * 250

req.Header.Set("User-Agent", fmt.Sprintf("%s/1.0", strings.Title(appName)))
if req.Body != nil {
panic("httpDo() only supports requests without body")
}
Expand Down

0 comments on commit 494773d

Please sign in to comment.