Browse Source

fixed post data

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
7925dc7237
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/request.js

+ 5
- 2
src/request.js View File

60
                     url: url,
60
                     url: url,
61
                     method: method,
61
                     method: method,
62
                     params: dataGet,
62
                     params: dataGet,
63
-                    data: dataPost
63
+                    data: $.param(dataPost),
64
+                    headers: {
65
+                        'Content-Type': "application/x-www-form-urlencoded"
66
+                    }
64
                 };
67
                 };
65
 
68
 
66
                 $http(params)
69
                 $http(params)
85
 
88
 
86
             return coPlanningServices;
89
             return coPlanningServices;
87
         }]);
90
         }]);
88
-})();
91
+})();

Loading…
Cancel
Save