diff --git a/lib/grape/dsl/inside_route.rb b/lib/grape/dsl/inside_route.rb index 6bd0a4690e..99e9b27620 100644 --- a/lib/grape/dsl/inside_route.rb +++ b/lib/grape/dsl/inside_route.rb @@ -181,7 +181,7 @@ def error!(message, status = nil, additional_headers = nil) # def rack_response(message, status = 200, headers = { Rack::CONTENT_TYPE => content_type }) Grape.deprecator.warn('Use error! instead of rack_response') - message = Rack::Utils::escape_html(message) if headers[Rack::CONTENT_TYPE] == 'text/html' + message = Rack::Utils.escape_html(message) if headers[Rack::CONTENT_TYPE] == 'text/html' Rack::Response.new(Array.wrap(message), Rack::Utils.status_code(status), headers) end