Skip to content

Commit 96b5df6

Browse files
committed
Restoring request method
1 parent c0fbe0b commit 96b5df6

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
@@ -1038,8 +1038,9 @@ def request(self, path_segment, method="GET", headers=None, body={},
10381038
logger.debug("%s request to %s (headers: %s, body: %s)",
10391039
method, path, str(mask_sensitive_data(dict(all_headers))), mask_sensitive_data(body))
10401040
if body:
1041+
body = _encode(**body)
1042+
10411043
if method == "GET":
1042-
body = _encode(**body)
10431044
path = path + UrlEncoded('?' + body, skip_encode=True)
10441045
message = {'method': method,
10451046
'headers': all_headers}

0 commit comments

Comments
 (0)