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

Viktorija Zaksiene ryzaja@codeworks.lt
Fri, 11 Apr 2003 06:01:54 -0400


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

Modified Files:
	http.py 
Log Message:
Added test for interface implementation.
Fixed broken getHeader() implementation.


=== Zope3/src/zope/publisher/http.py 1.16 => 1.17 ===
--- Zope3/src/zope/publisher/http.py:1.16	Sat Mar 29 12:01:05 2003
+++ Zope3/src/zope/publisher/http.py	Fri Apr 11 06:01:23 2003
@@ -493,10 +493,11 @@
 
         return clean
 
-    def getHeader(self, name, default=None):
+    def getHeader(self, name, default=None, literal=False):
         'See IHTTPRequest'
         environ = self._environ
-        name = name.replace('-', '_').upper()
+        if not literal:
+            name = name.replace('-', '_').upper()
         val = environ.get(name, None)
         if val is not None:
             return val