Skip to content

Commit

Permalink
Add Content-Type header
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Dec 29, 2024
1 parent 9ca2422 commit 7a25b46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/issuer/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (iss *tokenIssuer) issue(ctx context.Context, config Config) (string, int,
user, password, _ := strings.Cut(config.BasicAuth, ":")
req.SetBasicAuth(user, password)
}
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")

resp, err := iss.client.Do(req)
if err != nil {
Expand Down

0 comments on commit 7a25b46

Please sign in to comment.