Browse Source

fixed post

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
7ac843268b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/request.js

+ 1
- 1
src/request.js View File

@@ -60,7 +60,7 @@
60 60
                     url: url,
61 61
                     method: method,
62 62
                     params: dataGet,
63
-                    data: $.param(dataPost),
63
+                    data: dataPost == null ? null : $.param(dataPost),
64 64
                     headers: {
65 65
                         'Content-Type': "application/x-www-form-urlencoded"
66 66
                     }

Loading…
Cancel
Save