Skip to content

Commit

Permalink
URI.encode is now dead - use CGI.escape instead
Browse files Browse the repository at this point in the history
  • Loading branch information
markevans committed May 19, 2021
1 parent 499512b commit 83039b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dragonfly/response.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'uri'
require 'cgi'
require 'rack'

module Dragonfly
Expand Down Expand Up @@ -99,7 +99,7 @@ def customize_headers(headers)

def filename_string
return unless job.name
filename = request_from_msie? ? URI.encode(job.name) : job.name
filename = request_from_msie? ? CGI.escape(job.name) : job.name
%(filename="#{filename}")
end

Expand Down

0 comments on commit 83039b6

Please sign in to comment.