[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.16

Sidnei da Silva sidnei@x3ng.com.br
Sat, 29 Mar 2003 12:01:05 -0500


Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv24948/src/zope/publisher

Modified Files:
	http.py 
Log Message:
There was no way to get a literal header

=== Zope3/src/zope/publisher/http.py 1.15 => 1.16 ===
--- Zope3/src/zope/publisher/http.py:1.15	Tue Mar 25 10:13:11 2003
+++ Zope3/src/zope/publisher/http.py	Sat Mar 29 12:01:05 2003
@@ -687,10 +687,11 @@
         accum.append('%s: %s' % (name, value))
 
 
-    def getHeader(self, name, default=None):
+    def getHeader(self, name, default=None, literal=False):
         'See IHTTPResponse'
-        return self._headers.get(name.lower(), default)
-
+        key = name.lower()
+        name = literal and name or key
+        return self._headers.get(name, default)
 
     def getHeaders(self):
         'See IHTTPResponse'