~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/bundle_ui.py

  • Committer: Robey Pointer
  • Date: 2007-09-04 01:45:03 UTC
  • mto: (140.2.1 merge-robey)
  • mto: This revision was merged to the branch mainline in revision 142.
  • Revision ID: robey@lag.net-20070904014503-eyhwioh245u4kknu
bug 121336: download bundles as application/octet stream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
            self.log.exception('Exception fetching bundle')
53
53
            raise InternalError('Could not fetch bundle')
54
54
            
55
 
        response.headers['Content-Type'] = 'text/plain'
 
55
        response.headers['Content-Type'] = 'application/octet-stream'
56
56
        response.headers['Content-Length'] = len(bundle_data)
57
57
        response.body = bundle_data
58
58
        self.log.info('/bundle: %r seconds' % (time.time() - z,))