diff --git a/lib/neography/rest/extensions.rb b/lib/neography/rest/extensions.rb index 4bed2bd..978e52d 100644 --- a/lib/neography/rest/extensions.rb +++ b/lib/neography/rest/extensions.rb @@ -13,7 +13,7 @@ def get(path) def post(path, body = {}, headers = nil) options = { - :body => body.to_json, + :body => headers.nil? ? body.to_json : body, :headers => headers || json_content_type.merge({'Accept' => 'application/json;stream=true'}) }