Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
@marknadig

Description

@marknadig

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions