From a078f860d27f5a30d277d90d18add43b2f0e2c13 Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Mon, 11 Mar 2013 18:42:00 +0100 Subject: [PATCH] basic auth header changed to string from unicode --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 00ffc17e..e7d9f2c6 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1784,7 +1784,7 @@ class Auth(object): elif basic_auth_realm is True: basic_realm = u'' + current.request.application http_401 = HTTP(401, u'Not Authorized', - **{u'WWW-Authenticate': u'Basic realm="' + basic_realm + '"'}) + **{'WWW-Authenticate': u'Basic realm="' + basic_realm + '"'}) if not basic or not basic[:6].lower() == 'basic ': if basic_auth_realm: raise http_401