~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/diff_ui.py

  • Committer: Matt Nordhoff
  • Date: 2009-05-17 06:29:14 UTC
  • mfrom: (345.1.4 376957-non-utf8-annotate)
  • Revision ID: mnordhoff@mattnordhoff.com-20090517062914-wk2rm1gdrokimnw5
Fix annotating non-UTF-8 files when Pygments is disabled (#376957)

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        z = time.time()
39
39
 
40
40
        args = []
41
 
        while True:
 
41
        while 1:
42
42
            arg = path_info_pop(environ)
43
43
            if arg is None:
44
44
                break
73
73
        headers = [
74
74
            ('Content-Type', 'application/octet-stream'),
75
75
            ('Content-Length', len(content)),
76
 
            ('Content-Disposition', 'attachment; filename=%s' % (filename,)),
 
76
            ('Content-Disposition', 'attachment; filename=%s' % filename),
77
77
            ]
78
78
        start_response('200 OK', headers)
79
79
        return [content]