lib/usher/util/rack-mixins.rb in usher-0.5.10 vs lib/usher/util/rack-mixins.rb in usher-0.5.11

- old
+ new

@@ -6,10 +6,10 @@ module Utils def uri_escape(s) s.to_s.gsub(/([^:\/?\[\]\-_~\.!\$&'\(\)\*\+,;=@a-zA-Z0-9]+)/n) { '%'<<$1.unpack('H2'*$1.size).join('%').upcase - }.tr(' ', '+') + } end module_function :uri_escape def uri_unescape(s) gsub(/((?:%[0-9a-fA-F]{2})+)/n){