web/application.py
changeset 8443 86fc11fb6f99
parent 8390 637b934bc742
child 8466 92c668170ef9
--- a/web/application.py	Wed Jun 13 10:06:11 2012 +0200
+++ b/web/application.py	Thu Jun 14 15:55:03 2012 +0200
@@ -348,6 +348,7 @@
             # activate realm-based auth
             realm = self.vreg.config['realm']
             req.set_header('WWW-Authenticate', [('Basic', {'realm' : realm })], raw=False)
+        content = ''
         try:
             self.connect(req)
             # DENY https acces for anonymous_user
@@ -356,7 +357,6 @@
                 and self.vreg.config['https-deny-anonymous']):
                 # don't allow anonymous on https connection
                 raise AuthenticationError()
-            content = ''
             # nested try to allow LogOut to delegate logic to AuthenticationError
             # handler
             try: