Commit 0e55cf7c authored by 's avatar

Renamed get_header to getHeader

parent 1ef49230
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# file. # file.
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.4 $'[11:-2] __version__='$Revision: 1.5 $'[11:-2]
import regex import regex
from string import atoi, atol, join, upper, split, strip, rfind from string import atoi, atol, join, upper, split, strip, rfind
...@@ -279,7 +279,7 @@ class Request: ...@@ -279,7 +279,7 @@ class Request:
def has_key(self,key): def has_key(self,key):
return self.get(key, Request) is not Request return self.get(key, Request) is not Request
def get_header(self, name, default=None): def getHeader(self, name, default=None):
"""Return the named HTTP header, or an optional default """Return the named HTTP header, or an optional default
argument or None if the header is not found. Note that argument or None if the header is not found. Note that
both original and CGI-ified header names are recognized, both original and CGI-ified header names are recognized,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment