Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Configured array formatting in request extra parameters to 'repeat' (#…
Browse files Browse the repository at this point in the history
…126)

This way it is possible to make calls like:

  AuthenticatedClient.getOrders({ status: ['open', 'done'] });

Previously it caused signature errors as arrays were formatted
with indices.
  • Loading branch information
jjanczyk authored and fb55 committed Oct 19, 2017
1 parent b703f64 commit 1c95a90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/clients/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class PublicClient {
Object.assign(opts, {
method: method.toUpperCase(),
uri: this.makeAbsoluteURI(this.makeRelativeURI(uriParts)),
qsStringifyOptions: { arrayFormat: 'repeat' },
});
this.addHeaders(opts);
const p = new Promise((resolve, reject) => {
Expand Down

0 comments on commit 1c95a90

Please sign in to comment.