Skip to content
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
@e-oz

Description

@e-oz

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions