From cf288a3503ef42eed9c998bee1b7f80b5d9e6e53 Mon Sep 17 00:00:00 2001 From: xenolf Date: Wed, 28 Oct 2015 23:42:41 +0100 Subject: [PATCH] Change Content-Type of JWS posts. Fixes #19. --- acme/jws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme/jws.go b/acme/jws.go index b58f7d17..96f7ae9e 100644 --- a/acme/jws.go +++ b/acme/jws.go @@ -36,7 +36,7 @@ func (j *jws) post(url string, content []byte) (*http.Response, error) { return nil, err } - resp, err := http.Post(url, "application/json", bytes.NewBuffer([]byte(signedContent.FullSerialize()))) + resp, err := http.Post(url, "application/jose+json", bytes.NewBuffer([]byte(signedContent.FullSerialize()))) if err != nil { return nil, err }