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

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


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

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

=== Zope3/src/zope/publisher/interfaces/http.py 1.12 => 1.13 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.12	Tue Mar 25 10:13:26 2003
+++ Zope3/src/zope/publisher/interfaces/http.py	Sat Mar 29 12:00:46 2003
@@ -116,7 +116,7 @@
         This is a read-only mapping from variable name to value.
         """)
 
-    def getHeader(name, default=None):
+    def getHeader(name, default=None, literal=False):
         """Get a header value
 
         Return the named HTTP header, or an optional default
@@ -124,6 +124,9 @@
         both original and CGI-ified header names are recognized,
         e.g. 'Content-Type', 'CONTENT_TYPE' and 'HTTP_CONTENT_TYPE'
         should all return the Content-Type header, if available.
+
+        If the literal argument is passed, the header is searched
+        'as is', eg: only if the case matches.
         """
 
     headers = Attribute(