Skip to content

Commit

Permalink
Return favicon to avoid messing with the browsers' minds
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed May 12, 2010
1 parent d0aa859 commit ba822d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ use Rack::Static, :urls => ["/"], :root => "public"

current = Hash.new(0)

map "/favicon.ico" do
run proc {
[200, {"Content-Type" => "image/png"}, [""]]
}
end

map "/reset" do
run proc {
current = Hash.new(0)
Expand Down

0 comments on commit ba822d4

Please sign in to comment.