Hello,

 I've got an exception on encode_header in tools.py.
 This patch seems to correct the problem.

Best regards,
-Mathieu

diff -r a75ecb072248 gluon/tools.py
--- a/gluon/tools.py Tue Jul 06 19:22:00 2010 -0500
+++ b/gluon/tools.py Wed Jul 07 18:19:27 2010 +0200
@@ -283,7 +283,7 @@

         def encode_header(key):
             if [c for c in key if 32>ord(c) or ord(c)>127]:
-                return header.Header(key.encode('utf-8'),'utf-8')
+                return Header.Header(key.encode('utf-8'),'utf-8')
             else:
                 return key
diff -r a75ecb072248 gluon/tools.py
--- a/gluon/tools.py	Tue Jul 06 19:22:00 2010 -0500
+++ b/gluon/tools.py	Wed Jul 07 18:19:27 2010 +0200
@@ -283,7 +283,7 @@
 
         def encode_header(key):
             if [c for c in key if 32>ord(c) or ord(c)>127]:
-                return header.Header(key.encode('utf-8'),'utf-8')
+                return Header.Header(key.encode('utf-8'),'utf-8')
             else:
                 return key

Reply via email to