aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/httpSpec.js
diff options
context:
space:
mode:
authorMark Nadig2013-01-30 08:41:39 -0700
committerVojta Jina2013-02-14 14:52:46 -0800
commit2a2123441c2b749b8f316a24c3ca3f77a9132a01 (patch)
treed79574a58025ae124fcd6c4c146ed996fb8c49f2 /test/ng/httpSpec.js
parent1d7a95df565192fc02a18b0b297b39dd615eaeb5 (diff)
downloadangular.js-2a2123441c2b749b8f316a24c3ca3f77a9132a01.tar.bz2
fix($resource): params should expand array values properly
Today, calling e.g. var R = $resource('/Path/:a'); R.get({a: 'foo', bar: ['baz1', 'baz2']}); results in a query string like "/Path/doh?bar=baz1,baz2" which is undesirable. This commit enhances resource to use $http to encode any non-url parameters resulting in a query string like "/Path/doh?bar=baz1&bar=baz2". BREAKING CHANGE: if the server relied on the buggy behavior then either the backend should be fixed or a simple serialization of the array should be done on the client before calling the resource service.
Diffstat (limited to 'test/ng/httpSpec.js')
0 files changed, 0 insertions, 0 deletions