From bf028c72a45b8df3a8c29ca3011ef3e76b9e87b4 Mon Sep 17 00:00:00 2001 From: Blake Hitchcock Date: Thu, 19 May 2016 14:37:05 -0400 Subject: [PATCH] Update post method documentation examples This behavior appears to have changed with 49956a707e31a231a6670027222a213280d65d22, but the documentation was not updated at that time. --- lib/httparty.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httparty.rb b/lib/httparty.rb index 96d68ccc..cb1edf2a 100644 --- a/lib/httparty.rb +++ b/lib/httparty.rb @@ -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