Skip to content

Commit 9cb3902

Browse files
committed
Restoring request method
1 parent a4f32af commit 9cb3902

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

splunklib/binding.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,9 @@ def request(
11041104
mask_sensitive_data(body),
11051105
)
11061106
if body:
1107+
body = _encode(**body)
1108+
11071109
if method == "GET":
1108-
body = _encode(**body)
11091110
path = path + UrlEncoded('?' + body, skip_encode=True)
11101111
message = {'method': method,
11111112
'headers': all_headers}

0 commit comments

Comments
 (0)