Przeglądaj źródła

fixed post

tags/0.1.0
Robin Thoni 8 lat temu
rodzic
commit
7ac843268b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/request.js

+ 1
- 1
src/request.js Wyświetl plik

@@ -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
                     }

Ładowanie…
Anuluj
Zapisz