1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-13 01:36:18 +00:00

add application/x-www-form-urlencoded to delete requests

This commit is contained in:
bgamard
2022-01-02 16:46:20 +01:00
parent 523501a592
commit 0a927fd320
2 changed files with 6 additions and 0 deletions

View File

@@ -462,6 +462,9 @@ angular.module('docs',
// Configuring $http to act like jQuery.ajax
$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.delete = {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
};
$httpProvider.defaults.transformRequest = [function(data) {
var param = function(obj) {
var query = '';

View File

@@ -88,6 +88,9 @@ angular.module('share',
// Configuring $http to act like jQuery.ajax
$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.delete = {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
};
$httpProvider.defaults.transformRequest = [function(data) {
var param = function(obj) {
var query = '';