Skip to content

Commit

Permalink
Add explicit variable current encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hartator committed Feb 17, 2017
1 parent 132e3fa commit 4830913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wayback_machine_downloader.rb
Expand Up @@ -201,7 +201,8 @@ def structure_dir_path dir_path
end

def download_file file_remote_info
file_url = file_remote_info[:file_url].encode(''.encoding)
current_encoding = "".encoding
file_url = file_remote_info[:file_url].encode(current_encoding)
file_id = file_remote_info[:file_id]
file_timestamp = file_remote_info[:timestamp]
file_path_elements = file_id.split('/')
Expand Down

0 comments on commit 4830913

Please sign in to comment.