AngularJS$http删除请求内容类型标头

AngularJS$http删除请求内容类型标头,angularjs,angularjs-resource,Angularjs,Angularjs Resource,当我使用AngularJS$resource模块发出删除请求时,angular会在请求头中添加一个内容类型:application/xml头。在中,有一节在未发送参数时删除内容类型请求标头。但是,我不明白为什么会发生这种情况,这是行不通的 以下是我如何提出删除请求: $resource('/my/topics/:topicId').remove({ topicId: 1}, successFn, errorFn 下面是哪个浏览器的标题 Accept:application/json, text

当我使用AngularJS
$resource
模块发出删除请求时,angular会在请求头中添加一个
内容类型:application/xml
头。在中,有一节在未发送参数时删除内容类型请求标头。但是,我不明白为什么会发生这种情况,这是行不通的

以下是我如何提出删除请求:

$resource('/my/topics/:topicId').remove({ topicId: 1}, successFn, errorFn
下面是哪个浏览器的标题

Accept:application/json, text/plain, */*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Content-Length:0
Content-Type:application/xml
Cookie:session=0a627145415440740d6cc8cd35d19ba3; __ngDebug=true
Host:localhost:9001
Origin:http://localhost:9001
Referer:http://localhost:9001/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36
内容类型
标题从何而来

编辑:我正在使用AngularJS 1.2.0rc1

我找到了解决方法:

我希望有人将此修复程序合并到angularjs master。

我找到了解决方法:


我希望有人将此修复程序合并到angularjs master。

您正在使用的angular的哪个版本啊,对不起。我添加了我正在使用的AngularJS版本。可能与您正在使用的AngularJS版本重复哦,对不起。我添加了我正在使用的AngularJS版本。可能是