Skip to content

Commit e24bd8e

Browse files
committed
favicon.svg
1 parent e841e2e commit e24bd8e

File tree

2 files changed

+275
-0
lines changed

2 files changed

+275
-0
lines changed

app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ http.createServer(function (request, response)
432432
{
433433
serveFile(response, {"Content-Type": "image/x-icon"}, "favicon.ico");
434434
}
435+
else if (parsedUrl.pathname == '/favicon.svg')
436+
{
437+
serveFile(response, {"Content-Type": "image/svg+xml"}, "favicon.svg");
438+
}
435439
else if (parsedUrl.pathname == '/' || parsedUrl.pathname.lastIndexOf('/index.', 0) === 0 || parsedUrl.pathname.lastIndexOf('/default.', 0) === 0)
436440
{
437441
redirect(response, "http://www.regexplanet.com/advanced/javascript/index.html");

0 commit comments

Comments
 (0)