Skip to content

Commit

Permalink
Don't gather download token for authenticated file download
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Feb 13, 2024
1 parent 1a057be commit 5af6299
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mwdblib/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ def download(self) -> bytes:
print("Downloaded {}".format(dropper.file_name))
"""
download_endpoint = "file/{id}/download".format(**self.data)
token = self.api.post(download_endpoint)["token"]
return cast(
bytes, self.api.get(download_endpoint, params={"token": token}, raw=True)
bytes, self.api.get(download_endpoint, raw=True)
)

@download.fallback("2.0.0")
Expand Down

0 comments on commit 5af6299

Please sign in to comment.