/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/download_ui.py

  • Committer: Robert Collins
  • Date: 2010-04-08 01:08:33 UTC
  • Revision ID: robertc@robertcollins.net-20100408010833-bdyut0exh4o7dk7a
Merge patch from Toshio Kuratomi to work with mod_wsgi - Content-Length must be strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        encoded_filename = urllib.quote(filename.encode('utf-8'))
62
62
        headers = [
63
63
            ('Content-Type', mime_type),
64
 
            ('Content-Length', len(content)),
 
64
            ('Content-Length', str(len(content))),
65
65
            ('Content-Disposition',
66
66
             "attachment; filename*=utf-8''%s" % (encoded_filename,)),
67
67
            ]