hiproxy
Version:
hiproxy - lightweight and powerful proxy tool for front-end developer based on Node.js.
15 lines (12 loc) • 325 B
JavaScript
/**
* @file hiproxy favicon.ico route
* @author zdying
*/
var fs = require('fs');
var path = require('path');
module.exports = function (request, response) {
response.writeHead(200, {
'Content-Type': 'application/x-ico'
});
fs.createReadStream(path.join(__dirname, 'source', 'favicon.ico')).pipe(response);
};