Switch to unified view

a/Allura/allura/model/filesystem.py b/Allura/allura/model/filesystem.py
...
...
92
        pylons.response.headers['Content-Type'] = ''
92
        pylons.response.headers['Content-Type'] = ''
93
        pylons.response.content_type = fp.content_type.encode('utf-8')
93
        pylons.response.content_type = fp.content_type.encode('utf-8')
94
        if not embed:
94
        if not embed:
95
            pylons.response.headers.add(
95
            pylons.response.headers.add(
96
                'Content-Disposition',
96
                'Content-Disposition',
97
                'attachment;filename=%s' % self.filename)
97
                'attachment;filename="%s"' % self.filename.encode('utf-8'))
98
        return iter(fp)
98
        return iter(fp)
99
99
100
    @classmethod
100
    @classmethod
101
    def save_thumbnail(cls, filename, image,
101
    def save_thumbnail(cls, filename, image,
102
                   content_type,
102
                   content_type,