Skip to content

Instantly share code, notes, and snippets.

View rahrens's full-sized avatar

Robert Ahrens rahrens

  • Ann Arbor, Michigan
View GitHub Profile
@rahrens
rahrens / possible_patch.js
Created October 26, 2011 10:42
request can't follow redirect URLs with inline ports in them
/* Making the following amendment to options.start in main.js causes this issue to cease.
I believe this is due to some kind of caching taking place in the agent layer. I also believe
that we have a situation here where each callback is getting invoked multiple times.
*/
options.start = function () {
options._started = true
options.method = options.method || 'GET'
var req_opts_fix = {