diff --git a/main.go b/main.go index 52d78bdce..5038b2a24 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,8 @@ import ( const authHeaderName = "Authorization" const authHeaderFormat = "Token %v" +const languageHeaderName = "Accept-Language" +const languageHeaderValue = "en-US" func NewAPIClientFor(host string, token string) *APIClient { cfg := NewConfiguration() @@ -17,5 +19,10 @@ func NewAPIClientFor(host string, token string) *APIClient { fmt.Sprintf(authHeaderFormat, token), ) + cfg.AddDefaultHeader( + languageHeaderName, + languageHeaderValue, + ) + return NewAPIClient(cfg) }