Skip to content

Commit

Permalink
Don't gather download token for authenticated file download (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Feb 13, 2024
1 parent 1a057be commit db5a4ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mwdblib/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ 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)
)
return cast(bytes, self.api.get(download_endpoint, raw=True))

@download.fallback("2.0.0")
def download_legacy(self) -> bytes:
Expand Down

0 comments on commit db5a4ef

Please sign in to comment.