feat(app): remove charset from content-type of post/put/patch (#1791)

pull/1841/head
Guri 2018-04-25 23:00:29 +09:00 committed by Anthony Lapenna
parent fe74f36f62
commit afa3fd9a47
1 changed files with 3 additions and 0 deletions

View File

@ -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);