- commit
- e1df6e85663395c59bb43538c3548ec00b5fd1bb
- parent
- 96c372f4da175cb9a494864dca63823db00fc5ae
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-06-18 13:06
fix: no newline in mimetype
Diffstat
| M | oreilly_downloader.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/oreilly_downloader.py b/oreilly_downloader.py
@@ -31,7 +31,7 @@ async def fetch_book(book_id, zfh, session): 31 31 content = content.replace(b_root_path, b'/EPUB/') 32 32 zfh.writestr(path, content) 33 3334 -1 zfh.writestr('mimetype', b'application/epub+zip\n', compress_type=zipfile.ZIP_STORED)-1 34 zfh.writestr('mimetype', b'application/epub+zip', compress_type=zipfile.ZIP_STORED) 35 35 zfh.writestr('META-INF/container.xml', CONTAINER) 36 36 37 37 url = BASE_URL + root_path