Changeset 5925


Ignore:
Timestamp:
11 Apr 2011, 21:47:24 (13 years ago)
Author:
uli
Message:

Tests revealed that our view implementation was indeed buggy. Fix
that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/image/browser/views.py

    r5922 r5925  
    3737        context's filename.
    3838        """
    39         content_type = mimetypes.guess_type(self.context.filename.lower())
     39        content_type, encoding = mimetypes.guess_type(
     40            self.context.filename.lower())
    4041        if content_type is not None:
    4142            self.response.setHeader('Content-Type', content_type)
Note: See TracChangeset for help on using the changeset viewer.