From c5b9e205026e73ad351e5de6abc32cb5c9dbf574 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 27 Nov 2015 01:16:28 +0100 Subject: Fix post --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client.go') diff --git a/client.go b/client.go index f92d15d..3674db2 100644 --- a/client.go +++ b/client.go @@ -1,6 +1,7 @@ package acme import ( + "bytes" "encoding/json" "io/ioutil" "net/http" @@ -24,7 +25,7 @@ func Post(uri string, v interface{}) error { if err != nil { return err } - _, err := http.Post(uri, "application/jose+json", body) + _, err = http.Post(uri, "application/jose+json", bytes.NewReader(body)) if err != nil { return err } -- cgit v1.2.3