lib/rambulance/exceptions_app.rb in rambulance-1.1.0 vs lib/rambulance/exceptions_app.rb in rambulance-1.1.1

- old
+ new

@@ -54,9 +54,15 @@ private def process_action(*) begin + request.content_mime_type + rescue Mime::Type::InvalidMimeType + request.env["MALFORMED_CONTENT_TYPE"], request.env["CONTENT_TYPE"] = request.env["CONTENT_TYPE"], "text/plain" + end + + begin request.GET rescue ActionController::BadRequest request.env["MALFORMED_QUERY_STRING"], request.env["QUERY_STRING"] = request.env["QUERY_STRING"], "" end