Skip to content

Commit 8c5dd13

Browse files
Remove unnecessary Content-Type header for when request body is empty
1 parent 7f4d4b6 commit 8c5dd13

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/duo_api.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def request(method, path, params = {}, additional_headers = nil)
6161
if params_go_in_body
6262
request['Content-Type'] = 'application/json'
6363
request.body = body
64-
else
65-
request['Content-Type'] = 'application/x-www-form-urlencoded'
6664
end
6765

6866
Net::HTTP.start(

0 commit comments

Comments
 (0)