Skip to content

Commit ed0124e

Browse files
Merge pull request #370 from evsasse/allow-patch-unwrapped-requests
Allow unwrapped requests to also use the PATCH method
2 parents 1a6b61e + 740800c commit ed0124e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/hubspot/helpers/requests/http_request_builder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def send
9797
"GET" => Net::HTTP::Get,
9898
"POST" => Net::HTTP::Post,
9999
"PUT" => Net::HTTP::Put,
100-
"DELETE" => Net::HTTP::Delete
100+
"DELETE" => Net::HTTP::Delete,
101+
"PATCH" => Net::HTTP::Patch
101102
}
102103

103104
request_class = http_methods[@method]

0 commit comments

Comments
 (0)