Skip to content

Commit 03ff954

Browse files
committed
Allow body params to be passed in as keys or strings
1 parent 0697657 commit 03ff954

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/typesense/api_call.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def perform_request(method, endpoint, query_parameters: nil, body_parameters: ni
7878

7979
unless body_parameters.nil?
8080
body = body_parameters
81-
body = Oj.dump(body_parameters) if request_options[:headers]['Content-Type'] == 'application/json'
81+
body = Oj.dump(body_parameters, mode: :compat) if request_options[:headers]['Content-Type'] == 'application/json'
8282
request_options.merge!(body: body)
8383
end
8484

0 commit comments

Comments
 (0)