mirror of
https://github.com/go-acme/lego.git
synced 2025-01-03 15:23:32 +02:00
servercow: fix regression (#1964)
This commit is contained in:
parent
0b5727002c
commit
e57bf3bbcf
@ -149,9 +149,8 @@ func newJSONRequest(ctx context.Context, method string, endpoint *url.URL, paylo
|
||||
|
||||
req.Header.Set("Accept", "application/json")
|
||||
|
||||
if payload != nil {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
}
|
||||
// Content-Type should be added even if there is no request body.
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
|
||||
return req, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user