From 82ed0c6e94e77757270e6694f7082eac5ef5e066 Mon Sep 17 00:00:00 2001 From: Aymeric Beaumet Date: Mon, 26 May 2014 23:09:00 +0100 Subject: [PATCH] feat: serve ePub as binary files The *.epub files are now served as binary file by Karma. Otherwise they are converted into strings and became corrupted. --- lib/preprocessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preprocessor.js b/lib/preprocessor.js index 51d3531c7..c6e0affdf 100644 --- a/lib/preprocessor.js +++ b/lib/preprocessor.js @@ -22,7 +22,7 @@ var isBinary = Object.create(null); 'sgi', 'tiff', 'psd', 'uvi', 'sub', 'djvu', 'dwg', 'dxf', 'fbs', 'fpx', 'fst', 'mmr', 'rlc', 'mdi', 'wdp', 'npx', 'wbmp', 'xif', 'webp', '3ds', 'ras', 'cmx', 'fh', 'ico', 'pcx', 'pic', 'pnm', 'pbm', 'pgm', 'ppm', 'rgb', 'tga', 'xbm', 'xpm', 'xwd', 'zip', 'rar', 'tar', 'bz2', 'eot', - 'ttf', 'woff', 'dat', 'nexe', 'pexe' + 'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub' ].forEach(function(extension) { isBinary['.' + extension] = true; });