~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/download_ui.py

  • Committer: Michael Hudson
  • Date: 2007-05-30 09:03:52 UTC
  • mfrom: (128.1.15 testing)
  • Revision ID: michael.hudson@canonical.com-20070530090352-2hdhyvs7jxgpoz1e
merge in the fix for #92435 too

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        self.log.info('/download %s @ %s (%d bytes)', path, h.get_revno(revid), len(content))
61
61
        response.headers['Content-Type'] = mime_type
62
62
        response.headers['Content-Length'] = len(content)
 
63
        response.headers['Content-Disposition'] = 'attachment; filename=%s'%(filename,)
63
64
        response.body = content
64
65
        return response.body