From f12db639c9fe8d3f3210cc5868ae150179a06d3a Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 19 Jun 2015 22:19:09 +0200 Subject: [PATCH] fix(middleware): Actually serve the favicon. --- lib/middleware/karma.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/middleware/karma.js b/lib/middleware/karma.js index 0f4eee3dd..a9186fa65 100644 --- a/lib/middleware/karma.js +++ b/lib/middleware/karma.js @@ -96,6 +96,11 @@ var createKarmaMiddleware = function (filesPromise, serveStaticFile, }) } + // serve the favicon + if (requestUrl === '/favicon.ico') { + return serveStaticFile(requestUrl, response) + } + // serve context.html - execution context within the iframe // or debug.html - execution context without channel to the server if (requestUrl === '/context.html' || requestUrl === '/debug.html') {