Skip to content

Commit

Permalink
add application/x-www-form-urlencoded to delete requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jendib committed Jan 2, 2022
1 parent 523501a commit 0a927fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs-web/src/main/webapp/src/app/docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down
3 changes: 3 additions & 0 deletions docs-web/src/main/webapp/src/app/share/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 0a927fd

Please sign in to comment.