lib/newark/request.rb in newark-0.0.6 vs lib/newark/request.rb in newark-0.0.7

- old
+ new

@@ -10,9 +10,13 @@ URI(uri) rescue URI::InvalidURIError URI(URI.escape(uri)) end + def path_info + @path_info ||= super == '/' ? super : super.sub(/\/$/, '') + end + def params @params ||= ActiveSupport::HashWithIndifferentAccess.new(super) end def body