From 3bccd12373567bf9369f44522599b7d61a006f60 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Mon, 28 Jan 2013 12:14:28 -0500 Subject: Remove BestStandardsSupport middleware --- .../middleware/best_standards_support.rb | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 actionpack/lib/action_dispatch/middleware/best_standards_support.rb (limited to 'actionpack/lib/action_dispatch/middleware') diff --git a/actionpack/lib/action_dispatch/middleware/best_standards_support.rb b/actionpack/lib/action_dispatch/middleware/best_standards_support.rb deleted file mode 100644 index 94efeb79fa..0000000000 --- a/actionpack/lib/action_dispatch/middleware/best_standards_support.rb +++ /dev/null @@ -1,30 +0,0 @@ -module ActionDispatch - class BestStandardsSupport - def initialize(app, type = true) - @app = app - - @header = case type - when true - "IE=Edge,chrome=1" - when :builtin - "IE=Edge" - when false - nil - end - end - - def call(env) - status, headers, body = @app.call(env) - - if headers["X-UA-Compatible"] && @header - unless headers["X-UA-Compatible"][@header] - headers["X-UA-Compatible"] << "," << @header.to_s - end - else - headers["X-UA-Compatible"] = @header - end - - [status, headers, body] - end - end -end -- cgit v1.2.3