Skip to content

Commit 05bed3d

Browse files
committed
Modified chatter
1 parent a4ed51b commit 05bed3d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

phylesystem_api/phylesystem_api/views/collection.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,10 @@ def fetch_collection(request):
7575
preferred_filename = collection_id.replace('/','_')
7676
# ADD content-disposition header
7777
response = request.response
78-
_LOG.debug("response? ", response)
79-
#_LOG.debug("response.content_disposition? ", response.content_disposition)
80-
#_LOG.debug("response.headers? ", response.headers)
81-
#_LOG.debug("OLD response.headers['Content-Disposition']? ", response.headers['Content-Disposition'])
82-
#response.content_disposition('attachment; filename={}.json;'.format(preferred_filename))
83-
request.response.headers["Content-Disposition"] = "attachment; filename={};".format(preferred_filename)
78+
response.headers["Content-Disposition"] = "attachment; filename={};".format(preferred_filename)
8479
_LOG.debug("NEW response.headers['Content-Disposition']? ", response.headers['Content-Disposition'])
8580
collection_id = collection_id[0:-5] # trim the '.json' extension and proceed w/ fetch
86-
_LOG.debug("NEW collection_id? ", collection_id)
81+
_LOG.debug("SHORTENED collection_id? ", collection_id)
8782

8883
result = fetch_doc(
8984
request,

0 commit comments

Comments
 (0)