Skip to content

Commit

Permalink
moved ./lib/connect to ./lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 23, 2011
1 parent 8646228 commit c4e7dbd
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -22,4 +22,4 @@ docs/api.html:
--desc "High performance middleware for [node](http://nodejs.org)." \
$(shell find lib/connect/middleware/* -type f) > $@

.PHONY: docs test test-cov graphs
.PHONY: docs test test-cov
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -49,6 +49,7 @@ module.exports = function favicon(path, options){
var options = options || {}
, path = path || __dirname + '/../public/favicon.ico'
, maxAge = options.maxAge || 86400000;

return function favicon(req, res, next){
if ('/favicon.ico' == req.url) {
if (icon) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/favicon.test.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {

'test custom favicon': function(){
var app = connect.createServer();
app.use(connect.favicon(__dirname + '/../lib/connect/public/favicon.ico'));
app.use(connect.favicon(__dirname + '/../lib/public/favicon.ico'));
assert.response(app,
{ url: '/favicon.ico' },
{ status: 200, headers: { 'Content-Type': 'image/x-icon' }});
Expand Down

0 comments on commit c4e7dbd

Please sign in to comment.