Skip to content

Instantly share code, notes, and snippets.

View ryanrolds's full-sized avatar

Ryan Olds ryanrolds

View GitHub Profile
@ryanrolds
ryanrolds / proxy.js
Created September 28, 2011 03:20
Tried something tricky, didn't work
var http = require('http');
var httpProxy = require('http-proxy');
var responseWrap = function (res) {
var write = res.write;
res.write = function() {
// Do stuff
write.apply(this,arguments);
}
return res;