Change Content-Type of JWS posts.

Fixes #19.
This commit is contained in:
xenolf 2015-10-28 23:42:41 +01:00
parent 6764e53bbe
commit cf288a3503

View file

@ -36,7 +36,7 @@ func (j *jws) post(url string, content []byte) (*http.Response, error) {
return nil, err 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 { if err != nil {
return nil, err return nil, err
} }