You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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.
AngularJS incorrectly(?) strips away "Content-Type" from headers when "data" is undefined originally but is assigned an object by a TransformRequest function. #7910
This request ends up going with Content-Type: text because of browsers' default behavior because Content-Type is stripped away by the code referenced above.
This reproes on latest Chrome, FF, IE (as expected)
Looking at the immediate surrounding of the $http code, the intent seems to be to send Content-Type: json as long as data is not undefined which makes me think it should be checked after transforms are applied (i.e. checking reqData instead of config.data for undefined).