Skip to content
Permalink
Browse files

Fix error "empty response for EPUB OPF" on some web servers that don'…

…t know the MIME type for .opf
  • Loading branch information
MurakamiShinyu committed Aug 11, 2019
1 parent 48fb3ac commit db8e9bcb7a4d6c0484c259d93112f54bc3021d70
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ts/adapt/net.ts
@@ -113,8 +113,8 @@ export function ajax(
);
request.send(opt_data);
} else {
if (/^file:|^https?:\/\/[^/]+\.githubusercontent\.com/.test(url)) {
// File or GitHub raw URL
if (/^file:|^https?:\/\/[^/]+\.githubusercontent\.com|\.opf$/.test(url)) {
// File or GitHub raw URL or .opf
if (
/\/aozorabunko\/[^/]+\/cards\/[^/]+\/files\/[^/.]+\.html$/.test(url)
) {

0 comments on commit db8e9bc

Please sign in to comment.
You can’t perform that action at this time.