mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-16 02:28:03 +08:00
fix(nodeserver): add dummy favicon.ico to silence 404s
This commit is contained in:
BIN
lib/nodeserver/favicon.ico
Normal file
BIN
lib/nodeserver/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 894 B |
@@ -92,6 +92,10 @@ StaticServlet.prototype.handleRequest = function(req, res) {
|
||||
if (parts[parts.length-1].charAt(0) === '.')
|
||||
return self.sendForbidden_(req, res, path);
|
||||
|
||||
// favicon rewriting
|
||||
if (path === './favicon.ico')
|
||||
return self.sendFile_(req, res, './lib/nodeserver/favicon.ico');
|
||||
|
||||
// docs rewriting
|
||||
var REWRITE = /\/(guide|api|cookbook|misc|tutorial).*$/,
|
||||
IGNORED = /(\.(css|js|png|jpg)$|partials\/.*\.html$)/,
|
||||
|
||||
Reference in New Issue
Block a user