Skip to content

Commit

Permalink
Merge pull request #31 from nleguen/master
Browse files Browse the repository at this point in the history
representer post (and put/patch) methods doesn't work because of missing body parameter.
  • Loading branch information
apotonick committed Jun 22, 2012
2 parents dba8ae1 + a5bc2c6 commit 6bfe80d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/roar/representer/transport/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bfe80d

Please sign in to comment.