Remove default JSON body
This commit is contained in:
parent
41f3d5c7ac
commit
d550596d52
@ -16,10 +16,6 @@ import (
|
||||
"forge.cadoles.com/wpetit/go-http-peering/server"
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultBody = "{}"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrInvalidPrivateKey = errors.New("invalid private key")
|
||||
ErrUnexpectedResponse = errors.New("unexpected response")
|
||||
@ -177,7 +173,7 @@ func (c *Client) addClientToken(r *http.Request, body []byte) error {
|
||||
|
||||
func (c *Client) createBodySum(body []byte) ([]byte, error) {
|
||||
if body == nil || len(body) == 0 {
|
||||
body = []byte(DefaultBody)
|
||||
body = []byte("")
|
||||
}
|
||||
sha := sha256.New()
|
||||
_, err := sha.Write(body)
|
||||
|
Loading…
Reference in New Issue
Block a user