lib/bukin/utils.rb in bukin-0.2.0 vs lib/bukin/utils.rb in bukin-0.3.0

- old
+ new

@@ -7,10 +7,10 @@ end end def download_file(url, content_disposition = false) open(url) do |download| - file_name = if content_disposition + file_name = if download.meta['content-disposition'] download.meta['content-disposition'] .match(/filename=(\"?)(.+)\1/)[2] .force_encoding("UTF-8") else File.basename(url)