[Zope-Checkins] CVS: Zope/lib/python/Products/ZReST - ZReST.py:1.5
Andreas Jung
andreas@andreas-jung.com
Thu, 6 Feb 2003 04:05:59 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZReST
In directory cvs.zope.org:/tmp/cvs-serv429
Modified Files:
ZReST.py
Log Message:
fixed invalid MIME header
=== Zope/lib/python/Products/ZReST/ZReST.py 1.4 => 1.5 ===
--- Zope/lib/python/Products/ZReST/ZReST.py:1.4 Sun Feb 2 09:21:51 2003
+++ Zope/lib/python/Products/ZReST/ZReST.py Thu Feb 6 04:05:57 2003
@@ -80,14 +80,14 @@
def index_html(self, REQUEST=None):
''' Getting the formatted text
'''
- REQUEST.RESPONSE.setHeader('content-type', 'text/html; charset: %s' % self.output_encoding)
+ REQUEST.RESPONSE.setHeader('content-type', 'text/html; charset=%s' % self.output_encoding)
return self.formatted
security.declareProtected('View', 'source_txt')
def source_txt(self, REQUEST=None):
''' Getting the source text
'''
- REQUEST.RESPONSE.setHeader('content-type', 'text/plain; charset: %s' % self.input_encoding)
+ REQUEST.RESPONSE.setHeader('content-type', 'text/plain; charset=%s' % self.input_encoding)
return self.source
# edit form, which is also the primary interface
@@ -271,6 +271,9 @@
#
# $Log$
+# Revision 1.5 2003/02/06 09:05:57 andreasjung
+# fixed invalid MIME header
+#
# Revision 1.4 2003/02/02 14:21:51 andreasjung
# the content-type header is now set with the corresponding encoding parameter
#