Skip to content
Browse files

Merge pull request #31 from nleguen/master

representer post (and put/patch) methods doesn't work because of missing body parameter.
  • Loading branch information...
2 parents dba8ae1 + a5bc2c6 commit 6bfe80dc740685801dba74b56e8d4c34bf58a21f @apotonick committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/roar/representer/transport/net_http.rb
View
6 lib/roar/representer/transport/net_http.rb
@@ -13,15 +13,15 @@ def get_uri(uri, as)
end
def post_uri(uri, body, as)
- do_request(Net::HTTP::Post, uri, as)
+ do_request(Net::HTTP::Post, uri, as, body)
end
def put_uri(uri, body, as)
- do_request(Net::HTTP::Put, uri, as)
+ do_request(Net::HTTP::Put, uri, as, body)
end
def patch_uri(uri, body, as)
- do_request(Net::HTTP::Patch, uri, as)
+ do_request(Net::HTTP::Patch, uri, as, body)
end
def delete_uri(uri, as)

0 comments on commit 6bfe80d

Please sign in to comment.
Something went wrong with that request. Please try again.