mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
1b73c23597
The fetch backend now propagates the plain body when parsing the body fails. This replicates the behavior of the XHR backend introduced in #19773. The current state completely obfuscates errors of the "wrong" response type. However, it's not uncommon for successful requests to return one type and errors to return another type. Propagating the plain error allows downstream error consumers to reason about the error body and decide how to parse it depending on application needs. PR Close #62765
24 KiB
24 KiB