Skip to content

Commit

Permalink
fix: explicitly require CGI (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones authored Jun 6, 2024
2 parents 7e79d3c + 69b240b commit 2561ccb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions lib/http/cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'uri'
require 'domain_name'
require 'http/cookie/ruby_compat'
require 'cgi'

module HTTP
autoload :CookieJar, 'http/cookie_jar'
Expand Down
2 changes: 0 additions & 2 deletions lib/http/cookie_jar/mozilla_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,6 @@ def get_query_param(str, key)
}
end
else
require 'cgi'

def encode_www_form(enum)
enum.map { |k, v| "#{CGI.escape(k)}=#{CGI.escape(v)}" }.join('&')
end
Expand Down

0 comments on commit 2561ccb

Please sign in to comment.