Skip to content

Commit

Permalink
Merge pull request #475 from rbhitchcock/update-post-method-docs
Browse files Browse the repository at this point in the history
Update post method documentation examples
  • Loading branch information
greatuserongithub committed May 19, 2016
2 parents 2315322 + bf028c7 commit 0c1ac2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httparty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def get(path, options = {}, &block)
# Foo.post('http://foo.com/resources', body: {bar: 'baz'})
#
# # Simple post with full url using :query option,
# # which gets set as form data on the request.
# # which appends the parameters to the URI.
# Foo.post('http://foo.com/resources', query: {bar: 'baz'})
def post(path, options = {}, &block)
perform_request Net::HTTP::Post, path, options, &block
Expand Down

0 comments on commit 0c1ac2f

Please sign in to comment.