Skip to content

Commit

Permalink
Make it possible to use WSGI without repoze.who.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Oct 31, 2011
1 parent 4ba9038 commit 93246d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++

- Make it possible to use WSGI without repoze.who.

- Fixed serious authentication vulnerability in stock configuration.

- Fixed a regression in webdav support that broke external editor feature.
Expand Down
3 changes: 3 additions & 0 deletions src/ZPublisher/WSGIPublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def listHeaders(self):

def _unauthorized(self):
self.setStatus(401)
realm = self.realm
if realm:
self.setHeader('WWW-Authenticate', 'basic realm="%s"' % realm, 1)

def write(self,data):
""" Add data to our output stream.
Expand Down

0 comments on commit 93246d9

Please sign in to comment.