From 07b61ee9c85f165d6f8622bff47ec3d7b1347148 Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Tue, 28 Feb 2017 20:22:13 +0200 Subject: [PATCH] Add content-type to json-rpc post to make parity happy --- src/clj/commiteth/eth/core.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clj/commiteth/eth/core.clj b/src/clj/commiteth/eth/core.clj index 9e9e2a2..7c0dfc3 100644 --- a/src/clj/commiteth/eth/core.clj +++ b/src/clj/commiteth/eth/core.clj @@ -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)