This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
resource params doesn't treat array values properly #1919
Closed
Description
This issue was addressed for $http service here #1363. However, resource is currently doing its own encoding of params.
var R = $resource('/Path/:a');
R.get({a: 'foo', bar: ['baz1', 'baz2']});
results in a query like
/Path/doh?bar=baz1,baz2
and should follow the $http encoding:
/Path/doh?bar=baz1&bar=baz2