[Zope] setHeader, but no getHeader

Mark McEahern mark@mceahern.com
Fri, 31 Jan 2003 09:15:52 -0600


Why does lib/python/ZPublisher/HTTPResponse.py have a setHeader(), but not a
getHeader()?

Seeing how setHeader() converts the header name to lowercase, it would make
sense to have a getHeader() that converts the queried key to lower before
searching self.headers.  [Oops, but then what about the literal flag?]

Hmm, maybe HTTPResponse.py is assuming everyone reads the relevant RFCs?
;-)

Cheers,

// m

-