summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZouski <nick.warshawski@gmail.com>2019-04-29 18:26:58 -0600
committerGitHub <noreply@github.com>2019-04-29 18:26:58 -0600
commit57fba4ae06a23111d4aa7ad7bd63b514d4f16b6c (patch)
treed90d0725b16e817ce23d20c9bdac4dbc7e6c2e3d
parentcd730c11601ef54631f8ab6f883864639ea758bd (diff)
Add patch to hippie
-rw-r--r--lib/net/hippie/client.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb
index 8983833..b496204 100644
--- a/lib/net/hippie/client.rb
+++ b/lib/net/hippie/client.rb
@@ -42,6 +42,12 @@ module Net
request = request_for(Net::HTTP::Get, uri, headers: headers, body: body)
execute(uri, request, &block)
end
+
+ def post(uri, headers: {}, body: {}, &block)
+ type = Net::HTTP::Patch
+ request = request_for(type, uri, headers: headers, body: body)
+ execute(uri, request, &block)
+ end
def post(uri, headers: {}, body: {}, &block)
type = Net::HTTP::Post