Skip to content

Commit

Permalink
Fix query string boolean conversions. Closes #1129.
Browse files Browse the repository at this point in the history
jshcodes committed Mar 22, 2024
1 parent dcf458c commit 4bdea73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/falconpy/_util/_functions.py
Original file line number Diff line number Diff line change
@@ -392,6 +392,11 @@ def perform_request(endpoint: str = "",
# Force all requests to pass the User-Agent identifier
headers["User-Agent"] = _USER_AGENT
headers["CrowdStrike-SDK"] = _USER_AGENT
# Clean up query string booleans - Issue #1129
if api.param_payload:
for param, param_value in api.param_payload.items():
if isinstance(param_value, bool):
api.param_payload[param] = str(param_value).lower()
try:
# Log our payloads if debugging is enabled
log_api_payloads(api, headers)

0 comments on commit 4bdea73

Please sign in to comment.