Struct.new(:app)
Responds to requests for /favicon.ico with a content free 404 and caching headers.
# File lib/shotgun/favicon.rb, line 5 5: def call(env) 6: if env['PATH_INFO'] == '/favicon.ico' 7: [404, { 8: 'Content-Type' => 'image/png', 9: 'Cache-Control' => 'public, max-age=100000000000' 10: }, []] 11: else 12: app.call(env) 13: end 14: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.