-
Notifications
You must be signed in to change notification settings - Fork 27.1k
HttpClient posting number zero not working #19195
Copy link
Copy link
Closed
Labels
area: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientfreq2: mediumtype: bug/fix
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Number zero (0) doesn't get sent via post - body.
All other numbers seem to work fine.
Expected behavior
It should be possible to post a 0 via post - body.
Minimal reproduction of the problem with instructions
DEMO: https://plnkr.co/edit/YYQfVJYAJjWyy6eMaR5Q?p=preview
Open dev tools and look at the request.
Environment
Angular version: 4.3.6
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientfreq2: mediumtype: bug/fix