[chore]: Bump golang.org/x/crypto from 0.32.0 to 0.33.0 (#3771)

This commit is contained in:
dependabot[bot] 2025-02-10 15:52:55 +00:00 committed by GitHub
commit 4ac5447ad6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 474 additions and 33 deletions

View file

@ -514,7 +514,11 @@ func (c *Client) Accept(ctx context.Context, chal *Challenge) (*Challenge, error
return nil, err
}
res, err := c.post(ctx, nil, chal.URI, json.RawMessage("{}"), wantStatus(
payload := json.RawMessage("{}")
if len(chal.Payload) != 0 {
payload = chal.Payload
}
res, err := c.post(ctx, nil, chal.URI, payload, wantStatus(
http.StatusOK, // according to the spec
http.StatusAccepted, // Let's Encrypt: see https://goo.gl/WsJ7VT (acme-divergences.md)
))