From f7e3d0374ed393afcfa6ca98e206ae26e1636008 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Nov 2015 11:06:22 +0530 Subject: [PATCH] ... --- src/calibre/library/server/mobile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/server/mobile.py b/src/calibre/library/server/mobile.py index d644f3902c..6306c628f9 100644 --- a/src/calibre/library/server/mobile.py +++ b/src/calibre/library/server/mobile.py @@ -288,7 +288,7 @@ class MobileServer(object): cherrypy.response.headers['Content-Type'] = 'text/html; charset=utf-8' cherrypy.response.headers['Last-Modified'] = self.last_modified(updated) - q = {b'search':search.encode('utf-8'), 'order':order.encode('utf-8'), 'sort':sort.encode('utf-8'), 'num':str(num).encode('utf-8')} + q = {b'search':search.encode('utf-8'), b'order':order.encode('utf-8'), b'sort':sort.encode('utf-8'), b'num':str(num).encode('utf-8')} url_base = "/mobile?" + urlencode(q) ua = cherrypy.request.headers.get('User-Agent', '').strip() have_kobo_browser = self.is_kobo_browser(ua)