We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4925a6 commit 20cc2deCopy full SHA for 20cc2de
1 file changed
src/request.js
@@ -17,7 +17,7 @@ module.exports = function(Api) {
17
options.path = path_module.join(this.httpOptions.path, path);
18
19
if (fields.length !== 0) {
20
- params[fields] = fields.join();
+ params["fields"] = fields.join();
21
}
22
options.path += '?' + queryString.stringify(params);
23
@@ -28,6 +28,7 @@ module.exports = function(Api) {
28
//if (xsrfValue) {
29
// headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;
30
//}
31
+
32
return new Promise(function (resolve, reject) {
33
var req = http.request(options, function (res) {
34
var body = '';
0 commit comments