Sha256: 19711a8e9e50ce6d84b5d3bfa1bbaf44715cb73a8ee745d519ce5d3235c2d4e6

Contents?: true

Size: 289 Bytes

Versions: 22

Compression:

Stored size: 289 Bytes

Contents

module Locomotive::Wagon
  class Server

    class Favicon < Middleware

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

    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
locomotivecms_wagon-1.5.8 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.7 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.6 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.5 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.4 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.3 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.2 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.1 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.0 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.5.0.rc1 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.4.0 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.3.3 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.3.2 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.3.1 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.3.0 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.2.2 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.2.1 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.2.0 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.1.0 lib/locomotive/wagon/server/favicon.rb
locomotivecms_wagon-1.0.2 lib/locomotive/wagon/server/favicon.rb