This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Detect JSON response by content-type header #2973
Closed
Description
Hello. In documentation to $http we can find:
If JSON response is detected, deserialize it using a JSON parser.
Please, don't ignore content-type header of response.
If server responds "string"
(exactly with quotes) and content-type of response is JSON, $http.get().success() function should receive string
without quotes, because data should be deserialized from JSON.