Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

agents pass-through

  • Loading branch information...
commit fa49831d46051998e923e14f156fd5af6c333e33 1 parent 5de1b30
@ntoshev ntoshev authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/fetch.js
View
3  lib/fetch.js
@@ -19,6 +19,7 @@ payload: str
disableGzip: false
asyncDnsLoookup: false
timeout: null
+agent: undefined
cookies: ['name=val']
@@ -242,6 +243,8 @@ FetchStream.prototype.runStream = function(url){
url_data.urloptions.headers['content-length'] = this.options.payloadSize;
}
+ url_data.urloptions.agent = this.options.agent;
+
if (this.options.asyncDnsLoookup) {
var dnsCallback = (function (err, adresses){
if (err) {
Please sign in to comment.
Something went wrong with that request. Please try again.