Skip to content

Commit

Permalink
let body of post extension pass through without the to_json if header…
Browse files Browse the repository at this point in the history
…s are not nil
  • Loading branch information
maxdemarzi committed Jan 31, 2014
1 parent cb21b01 commit 07e63dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neography/rest/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
}

Expand Down

0 comments on commit 07e63dc

Please sign in to comment.