Skip to content

Commit b43260a

Browse files
committed
Wrap DELETE parameters in request body as json
1 parent fcfa5df commit b43260a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/intercom/request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def self.post(path, form_data)
2525
end
2626

2727
def self.delete(path, params)
28-
new(path, Net::HTTP::Delete.new(append_query_string_to_url(path, params), default_headers))
28+
new(path, method_with_body(Net::HTTP::Delete, path, params))
2929
end
3030

3131
def self.put(path, form_data)
@@ -93,4 +93,4 @@ def self.append_query_string_to_url(url, params)
9393
url + "?#{query_string}"
9494
end
9595
end
96-
end
96+
end

0 commit comments

Comments
 (0)