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.
Bad content-length for $resource remove in IE 11, angularjs 1.4.5 #12739
Closed
Description
See plunk at http://plnkr.co/edit/1Pf5wTbjdMqmVQCkJ8il?p=preview.
The angular version is initially 1.4.3 (same problem exists in 1.4.5). In IE 11, when you click the "Test Delete" button and examine the request, notice that the Content-Length is 9 (which corresponds to the text 'undefined').
If you change the version to angular 1.3.18 and repeat, Content-Length is 0, which is correct.
The content-length of 9 with the value of 'undefined' causes the DELETE request to fail at the REST server.
This issue only exists in IE, I'm using version 11.