Revert the ipad content browser change, since it doesn't fix anything

This commit is contained in:
Kovid Goyal 2012-06-16 14:47:58 +05:30
parent 8d42bfb222
commit 7a7f0a9f31

View File

@ -102,12 +102,8 @@ class AuthController(object):
@wraps(func) @wraps(func)
def authenticate(*args, **kwargs): def authenticate(*args, **kwargs):
cookie = cherrypy.request.cookie.get(self.cookie_name, None) cookie = cherrypy.request.cookie.get(self.cookie_name, None)
ua = cherrypy.request.headers.get('User-Agent', '').strip()
if ('iPad;' in ua or 'iPhone;' in ua or ( if not (allow_cookie_auth and self.is_valid(cookie)):
not (allow_cookie_auth and self.is_valid(cookie)))):
# Apparently the iPad cant handle this
# see https://bugs.launchpad.net/bugs/1013976
digest_auth(self.realm, get_ha1_dict_plain(self.users_dict), digest_auth(self.realm, get_ha1_dict_plain(self.users_dict),
self.secret) self.secret)