Skip to content

Commit bc9adb2

Browse files
author
Святослав Посохин
committed
Now convert_camel_case works fine with array params
1 parent f733b39 commit bc9adb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonrpcserver/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ def __init__(self, request):
186186
# Convert camelCase to underscore
187187
if config.convert_camel_case:
188188
self.method_name = _convert_camel_case(self.method_name)
189-
self.kwargs = _convert_camel_case_keys(self.kwargs)
189+
if self.kwargs:
190+
self.kwargs = _convert_camel_case_keys(self.kwargs)
190191
self.response = None
191192

192193
def call(self, methods):

0 commit comments

Comments
 (0)