[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPResponse.py:1.53.8.3
Brian Lloyd
brian@zope.com
Wed, 12 Jun 2002 15:16:29 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv3168
Modified Files:
Tag: Zope-2_5-branch
HTTPResponse.py
Log Message:
Backport appendHeader bug fix.
=== Zope/lib/python/ZPublisher/HTTPResponse.py 1.53.8.2 => 1.53.8.3 ===
def appendHeader(self, name, value, delimiter=","):
'''\
- Append a value to a cookie
+ Append a value to a header.
Sets an HTTP return header "name" with value "value",
appending it following a comma if there was a previous value
set for the header. '''
headers=self.headers
if headers.has_key(name):
- h=self.header[name]
+ h=headers[name]
h="%s%s\n\t%s" % (h,delimiter,value)
else: h=value
self.setHeader(name,h)