Add content-type to json-rpc post to make parity happy

This commit is contained in:
Teemu Patja 2017-02-28 20:22:13 +02:00
parent 6e108a088d
commit 07b61ee9c8
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@
:method method
:params params
:id 1})
options {:body body}
options {:headers {"content-type" "application/json"}
:body body}
response (:body @(post eth-rpc-url options))
result (json/read-str response :key-fn keyword)]
(log/debug body "\n" result)