summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Richter <stephan.richter@gmail.com>2005-04-28 10:35:17 +0000
committerStephan Richter <stephan.richter@gmail.com>2005-04-28 10:35:17 +0000
commitd3de89ea3cca538fd6b48796dcf331bd7156fcf0 (patch)
tree179bc919541c400771164dffd6ff5f17ebd4d934
parent4e26b3f033ba67820f6bc9cbdfd91e77cbff4352 (diff)
downloadzope-publisher-monolithic-zope3-srichter-twisted-integration.tar.gz
Made header name non-zope specific to play nice with twisted.monolithic-zope3-srichter-twisted-integration
-rw-r--r--http.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/http.py b/http.py
index c1f0b76..6161b53 100644
--- a/http.py
+++ b/http.py
@@ -468,11 +468,13 @@ class HTTPRequest(BaseRequest):
'See IPublicationRequest'
super(HTTPRequest, self).setPrincipal(principal)
+ # XXX: This should really become an event that other parts of the
+ # framework can listen to.
logging_info = ILoggingInfo(principal, None)
if logging_info is not None:
message = logging_info.getLogMessage()
if message is not None:
- self.response.setHeader('x-zope-principal', message)
+ self.response.setHeader('x-principal', message)
def _createResponse(self, outstream):
# Should be overridden by subclasses