Skip to content

Instantly share code, notes, and snippets.

View Piggyback13's full-sized avatar
🛠️
Cooking

Egor Piggyback13

🛠️
Cooking
View GitHub Profile
@kentbrew
kentbrew / favicon-interceptor.js
Created January 3, 2011 19:32
How to short-circuit those annoying favicon requests in node.js
// early experiments with node had mysterious double requests
// turned out these were for the stoopid favicon
// here's how to short-circuit those requests
// and stop seeing 404 errors in your client console
var http = require('http');
http.createServer(function (q, r) {
// control for favicon