lib/glue/uri.rb in glue-0.22.0 vs lib/glue/uri.rb in glue-0.23.0
- old
+ new
@@ -1,9 +1,9 @@
require 'uri'
require 'cgi'
-require 'glue/string'
+require 'nano/string/blank%3F'
module Glue
# URI utilities collection.
#
@@ -158,10 +158,10 @@
hash = self.query_string_to_hash(query_string)
hash.update(parameters)
query_string = self.hash_to_query_string(hash)
- if Glue::StringUtils.valid?(query_string)
+ unless query_string.blank?
return "#{rest}?#{query_string}"
else
return rest
end
end