From 901af7414a0193bde3e9dadafe31bd656e50272e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 5 Sep 2009 08:40:11 -0600 Subject: [PATCH] Fix bug causing the calibre server to open files in read-write mode instead of read-only --- src/calibre/library/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/server.py b/src/calibre/library/server.py index 8e108ef923..b3ddd0110b 100644 --- a/src/calibre/library/server.py +++ b/src/calibre/library/server.py @@ -309,7 +309,7 @@ class LibraryServer(object): def get_format(self, id, format): format = format.upper() fmt = self.db.format(id, format, index_is_id=True, as_file=True, - mode='r+b') + mode='rb') if fmt is None: raise cherrypy.HTTPError(404, 'book: %d does not have format: %s'%(id, format)) if format == 'EPUB':