Skip to content

Commit

Permalink
Respond to apple-touch-icon.png in root directory of static files.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidw committed Feb 7, 2013
1 parent 2c8f7c5 commit 26f8740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/boss/boss_web_controller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ handle_request(Req, RequestMod, ResponseMod) ->
Url = lists:nthtail(length(BaseURL), FullUrl),
Response = simple_bridge:make_response(ResponseMod, {Req, DocRoot}),
case Url of
"/apple-touch-icon.png" = File ->
(Response:file(File)):build_response();
"/favicon.ico" = File ->
(Response:file(File)):build_response();
_ ->
Expand Down

0 comments on commit 26f8740

Please sign in to comment.