fix: Add url parameter as request method.

First argument of request method is First argument of request method
must be url. And number of argument must be three.
This commit is contained in:
MURAKAMI Masahiko
2015-03-23 22:17:13 +09:00
parent ec10a81513
commit 44ea173a96

View File

@@ -52,7 +52,7 @@ DefaultTransporter.prototype.configure = function(opts) {
*/
DefaultTransporter.prototype.request = function(opts, opt_callback) {
opts = this.configure(opts);
return request(opts, this.wrapCallback_(opt_callback));
return request(opts.uri || opts.url, opts, this.wrapCallback_(opt_callback));
};
/**