Skip to content

Commit 58d0bc4

Browse files
committed
Add todo
1 parent f088f5f commit 58d0bc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frameioclient/download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ def __init__(self, asset, download_folder):
88
self.download_folder = download_folder
99

1010
def download(self):
11+
# TODO add test to chere here to make sure the URL we download is coming from our S3 buckets
1112
# Grab the filename from the passed dictionary and store it.
1213
original_filename = self.asset['name']
1314
final_destination = os.path.join(self.download_folder, original_filename)
1415

1516
# Grab the origial_url from the passed dictionary, then download the file
1617
url = self.asset['original']
17-
r = requests.get(url, allow_redirects=True)
18+
r = requests.get(url)
1819
open(final_destination, 'wb').write(r.content)
1920

0 commit comments

Comments
 (0)