angular-cn/packages/common/http/src
cexbrayat fcfce99e9e fix(common): remove extra & in http params (#34896)
Previous to this commit, HTTP params like `{ a: '1', b: [], c: '3' }` resulted in a request like `a=1&&c=3` (note the double &&).

The ideal fix would probably be to stringify these params to `a=1&b=&c=3` like we do for empty string values. But that might be breaking as some APIs may rely on the absence of the parameter.

This fixes the issue in a compatible way by just removing the extra and unnecessary `&`, resulting in `a=1&c=3`.

PR Close #34896
2020-01-31 11:26:25 -08:00
..
backend.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
client.ts docs: Fix double 'as an' in description at line 2069 (#34373) 2020-01-07 10:29:41 -08:00
headers.ts docs: added value param wrt. method signature (#32968) 2019-11-06 19:51:19 +00:00
interceptor.ts docs: http api doc edit (#31613) 2019-07-23 21:12:25 -07:00
jsonp.ts docs: http api doc edit (#31613) 2019-07-23 21:12:25 -07:00
module.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
params.ts fix(common): remove extra & in http params (#34896) 2020-01-31 11:26:25 -08:00
request.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
response.ts fix(common): expose the `HttpUploadProgressEvent` interface as public API (#30852) 2019-06-07 08:47:47 -07:00
xhr.ts docs: http api doc edit (#31613) 2019-07-23 21:12:25 -07:00
xsrf.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00