Skip to content

Commit

Permalink
Application: make favicon.ico a non-redirecting resource
Browse files Browse the repository at this point in the history
stops buggy agents
  • Loading branch information
astro committed Jan 13, 2015
1 parent 8fa00d8 commit 1a6d519
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Application.hs
Expand Up @@ -219,6 +219,4 @@ makeDBPool dbconf =


getFaviconR :: Handler ()
getFaviconR =
redirectWith (Status 301 "Over there") $ StaticR $ StaticRoute ["favicon.png"] []

getFaviconR = sendFile "image/x-icon" $ "static/favicon.ico"
Binary file added static/favicon.ico
Binary file not shown.

0 comments on commit 1a6d519

Please sign in to comment.