mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 04:54:39 +03:00
update golang.org/x dependencies
This commit is contained in:
6
vendor/golang.org/x/crypto/acme/acme.go
generated
vendored
6
vendor/golang.org/x/crypto/acme/acme.go
generated
vendored
@ -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)
|
||||
))
|
||||
|
Reference in New Issue
Block a user