From afa3fd9a476a1615b917df42a6d9dd1223a19e29 Mon Sep 17 00:00:00 2001 From: Guri Date: Wed, 25 Apr 2018 23:00:29 +0900 Subject: [PATCH] feat(app): remove charset from content-type of post/put/patch (#1791) --- app/config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/config.js b/app/config.js index 85a9937db..8718db8cf 100644 --- a/app/config.js +++ b/app/config.js @@ -20,6 +20,9 @@ angular.module('portainer') }] }); $httpProvider.interceptors.push('jwtInterceptor'); + $httpProvider.defaults.headers.post['Content-Type'] = 'application/json'; + $httpProvider.defaults.headers.put['Content-Type'] = 'application/json'; + $httpProvider.defaults.headers.patch['Content-Type'] = 'application/json'; AnalyticsProvider.setAccount('@@CONFIG_GA_ID'); AnalyticsProvider.startOffline(true);