Skip to content

Commit

Permalink
Write temporary EPUB file in ASCII-8BIT cos it's binary file
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Feb 14, 2015
1 parent 309ff0e commit 740b54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/epub-searcher/epub-file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_remote_epub_file(url)
basename = File.basename(url)
local_path = make_temporary_local_path(basename)
FileUtils.mkdir_p(File.dirname(local_path))
open(local_path, 'w') do |file|
open(local_path, 'w:ASCII-8BIT') do |file|
file.puts download_remote_file(url)
end
return local_path
Expand Down

0 comments on commit 740b54f

Please sign in to comment.