Skip to content

Commit

Permalink
Prevent data keys from converting to query string parameters. Related…
Browse files Browse the repository at this point in the history
… to #1160.
  • Loading branch information
jshcodes committed May 18, 2024
1 parent 4c5cbd6 commit 8a79554
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/falconpy/foundry_logscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def ingest_data(self: object,
for key in data_keys:
if kwargs.get(key, None):
form_data[key] = kwargs.get(key)
kwargs.pop(key) # Prevent it from converting to a query string param

# Create a multipart form payload for our upload file
file_tuple = [("file", ("data-upload", data_file, "application/json"))]
Expand Down Expand Up @@ -163,6 +164,7 @@ def ingest_data_async(self: object,
for key in data_keys:
if kwargs.get(key, None):
form_data[key] = kwargs.get(key)
kwargs.pop(key) # Prevent it from converting to a query string param

# Create a multipart form payload for our upload file
file_tuple = [("file", ("data-upload", data_file, "application/json"))]
Expand Down

0 comments on commit 8a79554

Please sign in to comment.