1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Update post method documentation examples

This behavior appears to have changed with
49956a707e, but the documentation was not
updated at that time.
This commit is contained in:
Blake Hitchcock 2016-05-19 14:37:05 -04:00
parent 2315322422
commit bf028c72a4

View file

@ -496,7 +496,7 @@ module HTTParty
# 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