Skip to content
Browse files

agents pass-through

  • Loading branch information...
1 parent 5de1b30 commit fa49831d46051998e923e14f156fd5af6c333e33 @ntoshev ntoshev committed Mar 7, 2012
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) {

0 comments on commit fa49831

Please sign in to comment.
Something went wrong with that request. Please try again.