Sha256: a1ccb4cd686c958a2419200072f7b28821760aa66d93f5a92339260975a8329e

Contents?: true

Size: 400 Bytes

Versions: 15

Compression:

Stored size: 400 Bytes

Contents

module Locomotive::Steam
  module Middlewares

    class Favicon

      attr_accessor_initialize :app

      include Concerns::Helpers

      def call(env)
        if env['PATH_INFO'] == '/favicon.ico'
          # Default and empty Favicon rendered
          [200, { 'Content-Type' => 'image/vnd.microsoft.icon' }, ['']]
        else
          app.call(env)
        end
      end

    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
locomotivecms_steam-1.7.1 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.0.rc0 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.0.beta3 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.0.beta2 lib/locomotive/steam/middlewares/favicon.rb
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/middlewares/favicon.rb