Tidwell / node-challonge

A node.js wrapper for the challonge.com API
28 stars 9 forks source link

Client -Duplicate qs props created for nested objects #13

Closed Tidwell closed 7 years ago

Tidwell commented 7 years ago
client.makeRequest({
  path: '/some/path',
  method: 'GET',
  randomprop: 'thingie',
  someProperty: {
    anotherProperty: 'anotherthing'
  }
});

Result

'/v1/tournaments/some/path.json?randomprop=thingie&api_key=mykey&cache_bust=1&someProperty[another_property]=anotherthing&some_property[another_property]=anotherthing'