Skip to content

Commit

Permalink
Merge pull request #175 from usnistgov/fix/ODD953-download-name
Browse files Browse the repository at this point in the history
mdserver: fix renaming of files downloaded from publishing platform
  • Loading branch information
RayPlante authored Mar 26, 2021
2 parents 9485307 + 608ab39 commit d69fe57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/nistoar/pdr/publish/midas3/mdwsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ def send_datafile(self, id, filepath):

self.set_response(200, "Data file found")
self.add_header('Content-Type', mtype)
self.add_header('Content-Disposition', os.path.basename(filepath))
self.add_header('Content-Disposition',
'inline; filename="%s"' % os.path.basename(filepath))
if xsend:
self.add_header('X-Accel-Redirect', xsend)
self.end_headers()
Expand Down

0 comments on commit d69fe57

Please sign in to comment.