This looks like a bug to me (I can reproduce it too). Have you filed a bug?

On Wednesday, 2 September 2015 19:56:33 UTC+1, Rick Schumeyer wrote:
>
> I added a plunk that demonstrates this at: 
>
> http://plnkr.co/edit/1Pf5wTbjdMqmVQCkJ8il?p=preview
>
> For example, if you view the plunk in firefox vs ie, and then examine the 
> request, you can see the difference.
>
> On Wednesday, September 2, 2015 at 11:55:35 AM UTC-4, Rick Schumeyer wrote:
>>
>> I have some angular code using $resource.remove that works fine in all 
>> browsers in both angular 1.3 and 1.4, and it works in IE 11 with angular 
>> 1.3 but not 1.4.
>>
>> My question is, have I run into a bug in 1.4, or am I doing something 
>> incorrect?
>>
>> The following call the Supervisors REST resource and deletes a Supervisor.
>>
>> angular.module('testApp', ['ngResource'])
>>   .controller('myController', ['$scope', '$resource', function($scope, 
>> $resource) {
>>  
>>  var Supervisor = $resource('/api/supervisors/:id',{id: '@id'});
>>  
>>  $scope.doDelete = function() {
>>  console.log('delete');
>>  Supervisor.remove({id: 12});
>>  };
>>  
>>   }]);
>>
>> IE 11 with angular 1.3.12 produces this HTTP request (which is 
>> successful): (notice the content-length)
>>
>> DELETE http://localhost:8080/sx200_nossl/api/protected/supervisors/11 
>> HTTP/1.1
>> Referer: http://localhost:8080/sx200_nossl/test.html
>> Accept: application/json, text/plain, */*
>> Accept-Language: en-US
>> Accept-Encoding: gzip, deflate
>> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) 
>> like Gecko
>> Host: localhost:8080
>> *Content-Length: 0*
>> DNT: 1
>> Connection: Keep-Alive
>> Pragma: no-cache
>> Cookie: JSESSIONID=e76ba4dbd3a9d1d8f3308beff627
>>
>> IE 11 with angular 1.4.5 produces this HTTP request (which results in 
>> HTTP/1.1 400 Bad Request):  (now content-length is 9)
>>
>> DELETE http://localhost:8080/sx200_nossl/api/protected/supervisors/12 
>> HTTP/1.1
>> Referer: http://localhost:8080/sx200_nossl/test.html
>> Accept: application/json, text/plain, */*
>> Accept-Language: en-US
>> Content-Type: text/plain;charset=UTF-8
>> Accept-Encoding: gzip, deflate
>> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) 
>> like Gecko
>> Connection: Keep-Alive
>> *Content-Length: 9*
>> DNT: 1
>> Host: localhost:8080
>> Pragma: no-cache
>> Cookie: JSESSIONID=e76ba4dbd3a9d1d8f3308beff627
>>
>> *undefined*
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to