mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
66fd1f8ce6
Previously, HttpClient used the overly clever test "body || null" to determine when a body parameter was provided. This breaks when the valid bodies '0' or 'false' are provided. This change tests directly against 'undefined' to detect the presence of the body parameter, and thus correctly allows falsy values through. Fixes #19825. Fixes #19195. PR Close #19958
6.4 KiB
6.4 KiB