Skip to content

Commit

Permalink
Merge pull request #54 from cyrilis/img-query-fix
Browse files Browse the repository at this point in the history
Remove query from img src URLs for MIME
  • Loading branch information
pedrosanta committed Mar 23, 2018
2 parents 128afec + 903eb2f commit 349e2cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class EPub
extension = image.extension
else
id = uuid()
mediaType = mime.lookup url
mediaType = mime.lookup url.replace /\?.*/, ""
extension = mime.extension mediaType
dir = content.dir
self.options.images.push {id, url, dir, mediaType, extension}
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 349e2cc

Please sign in to comment.