'use strict';
// GLOBAL CONFIG
angular
.module('ng')
.config(function($httpProvider) {
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
$httpProvider.defaults.transformRequest.unshift(function(data) {
return angular.isObject(data) ? Object.toQueryString(data) : data;
});
});