branch | stable |
changeset 6353 | b622602f8e9d |
parent 6259 | c3d98e4bee12 |
child 6543 | 66145280a7e6 |
--- a/web/request.py Tue Sep 28 16:50:34 2010 +0200 +++ b/web/request.py Tue Sep 28 16:52:45 2010 +0200 @@ -531,7 +531,7 @@ """set output content type for this request. An optional filename may be given """ - if content_type.startswith('text/'): + if content_type.startswith('text/') and ';charset=' not in content_type: content_type += ';charset=' + (encoding or self.encoding) self.set_header('content-type', content_type) if filename: