Skip to content

Commit 20cc2de

Browse files
committed
Fix fields issue
1 parent a4925a6 commit 20cc2de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/request.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function(Api) {
1717
options.path = path_module.join(this.httpOptions.path, path);
1818

1919
if (fields.length !== 0) {
20-
params[fields] = fields.join();
20+
params["fields"] = fields.join();
2121
}
2222
options.path += '?' + queryString.stringify(params);
2323

@@ -28,6 +28,7 @@ module.exports = function(Api) {
2828
//if (xsrfValue) {
2929
// headers[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;
3030
//}
31+
3132
return new Promise(function (resolve, reject) {
3233
var req = http.request(options, function (res) {
3334
var body = '';

0 commit comments

Comments
 (0)