Skip to content

Commit

Permalink
STSCertificateIdentity: Init request form (#1770)
Browse files Browse the repository at this point in the history
Initialize request form before writing.

Fixes #1769
  • Loading branch information
klauspost authored Feb 9, 2023
1 parent 5211dc3 commit 230e538
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/credentials/sts_tls_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ func (i *STSCertificateIdentity) Retrieve() (Value, error) {
if err != nil {
return Value{}, err
}
if req.Form == nil {
req.Form = url.Values{}
}
req.Form.Add("DurationSeconds", strconv.FormatUint(uint64(livetime.Seconds()), 10))

resp, err := i.Client.Do(req)
Expand Down

0 comments on commit 230e538

Please sign in to comment.