Permalink
Browse files

Powered by Awesomesauce

  • Loading branch information...
1 parent d5c32db commit 61a4402cae450fa2ddec6edb571761af3edce710 @beaucollins committed May 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 server.coffee
View
6 server.coffee
@@ -5,7 +5,11 @@ url = require 'url'
app = express()
-app.use express.static('public')
+app.use (req, res, next)->
+ res.setHeader('X-Powered-By', 'Awesomesauce');
+ next()
+
+app.use express.static('public')
app.get '/supported', (req, res, next)->
find req.param('url'), req.headers['user-agent'], (e, http_response)->

0 comments on commit 61a4402

Please sign in to comment.