Skip to content

Commit

Permalink
Handle list response on report_executions_download_get. Closes #1033.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Sep 1, 2023
1 parent 84a1ac6 commit f6bd8ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/falconpy/_result/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ def __init__(self,
if isinstance(_headers, CaseInsensitiveDict):
_headers = dict(headers)
self.headers = Headers(_headers)
if isinstance(body, bytes):
if isinstance(body, list):
# Specific to report_executions_download_get returning raw
# JSON payloads as a list. There will be no Meta or Errors
# branch in this response.
self.resources = Resources(body) # pragma: no cover
elif isinstance(body, bytes):
# Binary response
self.resources = BinaryFile(body)
self.meta = Meta()
Expand Down

0 comments on commit f6bd8ae

Please sign in to comment.