angular-cn/packages/common/http/test
Alex Rickabaugh 503be69af6 fix(common): treat an empty body as null when parsing JSON in HttpClient (#19958)
Previously, XhrBackend would call JSON.parse('') if the response body was
empty (a 200 status code with content-length 0). This changes the XhrBackend
to attempt the JSON parse only if the response body is non-empty. Otherwise,
the body is left as null.

Fixes #18680.
Fixes #19413.
Fixes #19502.
Fixes #19555.

PR Close #19958
2017-11-28 22:27:10 -06:00
..
client_spec.ts fix(common): accept falsy values as HTTP bodies (#19958) 2017-11-28 22:27:10 -06:00
headers_spec.ts feat(common): new HttpClient API 2017-07-07 12:09:32 -07:00
jsonp_mock.ts Revert "refactor(core): Removed readonly getters and changed to readonly (#19225)" 2017-09-28 13:36:44 -07:00
jsonp_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
module_spec.ts feat(common): new HttpClient API 2017-07-07 12:09:32 -07:00
params_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
request_spec.ts feat(common): two missing features in HttpClient (#17996) 2017-07-07 14:56:36 -07:00
response_spec.ts fix(common): accept falsy values as HTTP bodies (#19958) 2017-11-28 22:27:10 -06:00
xhr_mock.ts fix(common): fix XSSI prefix stripping by using JSON.parse always (#18466) 2017-08-29 17:18:54 -07:00
xhr_spec.ts fix(common): treat an empty body as null when parsing JSON in HttpClient (#19958) 2017-11-28 22:27:10 -06:00
xsrf_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00