lib/locomotive/steam/middlewares/favicon.rb in locomotivecms_steam-0.1.2.pre.beta vs lib/locomotive/steam/middlewares/favicon.rb in locomotivecms_steam-1.0.0.pre.alpha

- old
+ new

@@ -1,17 +1,20 @@ module Locomotive::Steam module Middlewares - class Favicon < Base + class Favicon < Struct.new(:app) + include 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 \ No newline at end of file +end