str(charset)

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Fri, 25 Feb 2005 11:20:30 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline



--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=tmp-mYx_h

Make sure that charset attribute is a str.

Changed:
quixote/http_response.py

Here is the diff:
Index: quixote/http_response.py
===================================================================
--- quixote/http_response.py	(revision 26250)
+++ quixote/http_response.py	(working copy)
@@ -165,7 +165,7 @@
         self.content_type = content_type
 
     def set_charset(self, charset):
-        self.charset = charset.lower()
+        self.charset = str(charset).lower()
 
     def set_status(self, status, reason=None):
         """set_status(status : int, reason : string = None)
--FL5UXtIhxfXey3p5--