From 506718e393682b842b2f977b9c10cebc6d2327d7 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Tue, 8 Aug 2017 15:43:41 +0200
Subject: [PATCH] fix error callback call, when error post request

---
 www/js/services/http-services.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/js/services/http-services.js b/www/js/services/http-services.js
index f86f4a33b..1583b4a68 100644
--- a/www/js/services/http-services.js
+++ b/www/js/services/http-services.js
@@ -127,7 +127,7 @@ angular.module('cesium.http.services', ['cesium.cache.services'])
       return $q(function(resolve, reject) {
         var config = {
           timeout: forcedTimeout || timeout,
-          headers : {'Content-Type' : 'application/json;charset=UTF-8'} // TODO: test using "application/json"
+          headers : {'Content-Type' : 'application/json;charset=UTF-8'}
         };
 
         prepare(url, params, config, function(url, config) {
@@ -136,7 +136,7 @@ angular.module('cesium.http.services', ['cesium.cache.services'])
               resolve(data);
             })
             .error(function(data, status) {
-              processError(reject, data, status);
+              processError(reject, data, url, status);
             });
         });
       });
-- 
GitLab