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,7 +60,10 @@
60 60
                     url: url,
61 61
                     method: method,
62 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 69
                 $http(params)
@@ -85,4 +88,4 @@
85 88
 
86 89
             return coPlanningServices;
87 90
         }]);
88
-})();
91
+})();

Loading…
Cancel
Save