diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-05 12:44:09 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-05 12:44:09 -0700 |
commit | a46eae2345a00666ade983740ac27c79adc7bd70 (patch) | |
tree | 7550d9e16e076e47e4eb7ff1099d3091d735f4cc | |
parent | 113f994e92024f076ededa82295162e7ffcfafc8 (diff) | |
download | rack-a46eae2345a00666ade983740ac27c79adc7bd70.tar.gz |
fixing the CI
I really don't understand what is wrong. URI::Parser should exist.
-rw-r--r-- | lib/rack/utils.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb index f6347a4b..8eab6828 100644 --- a/lib/rack/utils.rb +++ b/lib/rack/utils.rb @@ -17,8 +17,6 @@ module Rack COMMON_SEP = QueryParser::COMMON_SEP KeySpaceConstrainedParams = QueryParser::Params - DEFAULT_PARSER = ::URI::Parser.new - class << self attr_accessor :default_query_parser end @@ -35,14 +33,14 @@ module Rack # Like URI escaping, but with %20 instead of +. Strictly speaking this is # true URI escaping. def escape_path(s) - DEFAULT_PARSER.escape s + ::URI::DEFAULT_PARSER.escape s end module_function :escape_path # Unescapes the **path** component of a URI. See Rack::Utils.unescape for # unescaping query parameters or form components. def unescape_path(s) - DEFAULT_PARSER.unescape s + ::URI::DEFAULT_PARSER.unescape s end module_function :unescape_path |