https://github.com/angular/angular
Revision 10691c626bf381bedfa278e9d50ab922b4b656cd authored by cexbrayat on 24 June 2021, 12:27:31 UTC, committed by Dylan Hunn on 04 May 2022, 19:43:37 UTC
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
1 parent a2d5358
Raw File
Tip revision: 10691c626bf381bedfa278e9d50ab922b4b656cd authored by cexbrayat on 24 June 2021, 12:27:31 UTC
fix(common): properly cast http param values to strings (#42643)
Tip revision: 10691c6
.prettierrc
{
  "printWidth": 100,
  "tabWidth": 2,
  "tabs": false,
  "singleQuote": true,
  "semicolon": true,
  "quoteProps": "preserve",
  "bracketSpacing": false
}
back to top