From 7a7f0a9f3117ee103b5fdefa531c9686392b5c23 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Jun 2012 14:47:58 +0530 Subject: [PATCH] Revert the ipad content browser change, since it doesn't fix anything --- src/calibre/library/server/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/calibre/library/server/utils.py b/src/calibre/library/server/utils.py index b697e3870a..57337d4c88 100644 --- a/src/calibre/library/server/utils.py +++ b/src/calibre/library/server/utils.py @@ -102,12 +102,8 @@ class AuthController(object): @wraps(func) def authenticate(*args, **kwargs): 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 ( - not (allow_cookie_auth and self.is_valid(cookie)))): - # Apparently the iPad cant handle this - # see https://bugs.launchpad.net/bugs/1013976 + if not (allow_cookie_auth and self.is_valid(cookie)): digest_auth(self.realm, get_ha1_dict_plain(self.users_dict), self.secret)