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.
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.
The text was updated successfully, but these errors were encountered:
It is e04a887 that causes the different behaviour from earlier versions.
Maybe we should change xhr.send(post) to xhr.send(isUndefined(post) ? null : post).
IE11 (and maybe others) converts an `undefined` argument to `xhr.send()` to
string (`'undefined'`) for certain request methods (e.g. DELETE). This
causes the request to appear having a body, when it shouldn't.
Closesangular#12739
IE11 (and maybe others) converts an `undefined` argument to `xhr.send()` to
string (`'undefined'`) for certain request methods (e.g. DELETE). This
causes the request to appear having a body, when it shouldn't.
Closesangular#12739Closesangular#12745
gkalpak
added a commit
to gkalpak/angular.js
that referenced
this issue
Sep 3, 2015
IE11 (and maybe others) converts an `undefined` argument to `xhr.send()` to
string (`'undefined'`) for certain request methods (e.g. DELETE). This
causes the request to appear having a body, when it shouldn't.
Closesangular#12739
gkalpak
added a commit
to gkalpak/angular.js
that referenced
this issue
Sep 3, 2015
IE11 (and maybe others) converts an `undefined` argument to `xhr.send()` to
string (`'undefined'`) for certain request methods (e.g. DELETE). This
causes the request to appear having a body, when it shouldn't.
Fixesangular#12141Fixesangular#12739
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.
The text was updated successfully, but these errors were encountered: