mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 23:27:57 +01:00
add application/x-www-form-urlencoded to delete requests
This commit is contained in:
parent
523501a592
commit
0a927fd320
@ -462,6 +462,9 @@ angular.module('docs',
|
|||||||
// Configuring $http to act like jQuery.ajax
|
// Configuring $http to act like jQuery.ajax
|
||||||
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
||||||
$httpProvider.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
$httpProvider.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
||||||
|
$httpProvider.defaults.headers.delete = {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
|
||||||
|
};
|
||||||
$httpProvider.defaults.transformRequest = [function(data) {
|
$httpProvider.defaults.transformRequest = [function(data) {
|
||||||
var param = function(obj) {
|
var param = function(obj) {
|
||||||
var query = '';
|
var query = '';
|
||||||
|
@ -88,6 +88,9 @@ angular.module('share',
|
|||||||
// Configuring $http to act like jQuery.ajax
|
// Configuring $http to act like jQuery.ajax
|
||||||
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
||||||
$httpProvider.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
$httpProvider.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
|
||||||
|
$httpProvider.defaults.headers.delete = {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
|
||||||
|
};
|
||||||
$httpProvider.defaults.transformRequest = [function(data) {
|
$httpProvider.defaults.transformRequest = [function(data) {
|
||||||
var param = function(obj) {
|
var param = function(obj) {
|
||||||
var query = '';
|
var query = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user