Parent

Methods

Files

Shotgun::SkipFavicon

Responds to requests for /favicon.ico with a content free 404 and caching headers.

Public Instance Methods

call(env) click to toggle source
    # 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.