Skip to content

Commit c0c3d6c

Browse files
committed
Use proper request.reponse reference
1 parent e89e86c commit c0c3d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phylesystem_api/phylesystem_api/views/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def fetch_collection(request):
7474
# save this as a filename WITHOUT slashes
7575
preferred_filename = collection_id.replace('/','_')
7676
# ADD content-disposition header
77-
Response.content_disposition('attachment; filename={}.json;'.format(preferred_filename))
77+
request.response.content_disposition('attachment; filename={}.json;'.format(preferred_filename))
7878
collection_id = collection_id[0:-5] # trim the '.json' extension and proceed w/ fetch
7979

8080
result = fetch_doc(

0 commit comments

Comments
 (0)