mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
10691c626b
Before this commit, when initializing `HttpParams` with:
const body = new HttpParams({fromObject: {b: 2}});
then `body.get('b')` returned `2` instead of `'2'` as expected.
This commit makes sure the values are converted to strings in such cases.
Fixes #42641
PR Close #42643