Permalink
Browse files

add remote property

  • Loading branch information...
1 parent 3c824da commit c4fe909a3a03396e9aa38f1d419e9051b48875c9 @mafintosh committed Jul 24, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -67,6 +67,7 @@ var API = function(remote, defaults) {
delete this.defaults.headers
this.http = (this.defaults.protocol === 'https:' ? require('https') : require('http')).request
+ this.remote = this.defaults.socketPath ? 'http+unix://'+this.defaults.socketPath : this.defaults.protocol+'//'+this.defaults.host+':'+this.defaults.port
}
API.prototype.get = function(path, opts, cb) {

0 comments on commit c4fe909

Please sign in to comment.