aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-13 04:38:02 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-13 04:38:02 +0100
commit1db342aa4b01994cc46f5414e919dba714b1abd3 (patch)
treecd1194d3c30c052f03e1d01d5ebf9ace8940e0ae /client.go
parentc63d454264860843570c5a553e6f114c6b2e70e6 (diff)
Change singer interface
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/client.go b/client.go
index 40590d6..596694f 100644
--- a/client.go
+++ b/client.go
@@ -1,7 +1,6 @@
package acme
import (
- "bytes"
"encoding/json"
"errors"
"fmt"
@@ -81,8 +80,7 @@ func (c *Client) post(url string, s Signer, v interface{}) error {
return err
}
- resp, err := http.Post(url, "application/jose+json",
- bytes.NewReader(signed))
+ resp, err := http.Post(url, "application/jose+json", signed)
if err != nil {
return err
}