Sha256: e1feeb55eef2b4d50257f9239cd941f075972dda57638594f60b7db80da8fa75

Contents?: true

Size: 309 Bytes

Versions: 7

Compression:

Stored size: 309 Bytes

Contents

# From ActionPack
module Olelo
  module Middleware
    class UAHeader
      def initialize(app)
        @app = app
      end

      def call(env)
        status, headers, body = @app.call(env)
        headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
        [status, headers, body]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
olelo-0.9.13 lib/olelo/middleware/ua_header.rb
olelo-0.9.12 lib/olelo/middleware/ua_header.rb
olelo-0.9.11 lib/olelo/middleware/ua_header.rb
olelo-0.9.10 lib/olelo/middleware/ua_header.rb
olelo-0.9.9 lib/olelo/middleware/ua_header.rb
olelo-0.9.8 lib/olelo/middleware/ua_header.rb
olelo-0.9.7 lib/olelo/middleware/ua_header.rb