I found an easy solution using the .concat
method
{
transformRequest: [function(req){...}].concat($http.defaults.transformRequest)
}
or alternatively, if you want your custom transformation to take place after angular's default transformations.
{
transformRequest: $http.defaults.transformRequest.concat([function(req){...}])
}