[Zope3-checkins]
SVN: Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py
Do not set a header, if 'getLogMessage()' returns None.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Apr 20 15:55:14 EDT 2005
Log message for revision 30065:
Do not set a header, if 'getLogMessage()' returns None.
Changed:
U Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py
-=-
Modified: Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py
===================================================================
--- Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py 2005-04-20 17:02:20 UTC (rev 30064)
+++ Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py 2005-04-20 19:55:14 UTC (rev 30065)
@@ -470,7 +470,8 @@
logging_info = ILoggingInfo(principal)
message = logging_info.getLogMessage()
- self.response.setHeader('x-zope-principal', message)
+ if message is not None:
+ self.response.setHeader('x-zope-principal', message)
def _createResponse(self, outstream):
# Should be overridden by subclasses
More information about the Zope3-Checkins
mailing list