kajax: PUT should have been POST
This commit is contained in:
parent
23f00055a9
commit
8666d8d6d6
1 changed files with 2 additions and 2 deletions
|
|
@ -37,10 +37,10 @@ proc ajax(meth, url: cstring; headers: openarray[(cstring, cstring)];
|
|||
contWrapper(this.status, this.statusText)
|
||||
ajax.send(data)
|
||||
|
||||
proc ajaxPut*(url: cstring; headers: openarray[(cstring, cstring)];
|
||||
proc ajaxPost*(url: cstring; headers: openarray[(cstring, cstring)];
|
||||
data: cstring;
|
||||
cont: proc (httpStatus: int, response: cstring)) =
|
||||
ajax("PUT", url, headers, data, cont)
|
||||
ajax("POST", url, headers, data, cont)
|
||||
|
||||
proc ajaxGet*(url: cstring; headers: openarray[(cstring, cstring)];
|
||||
cont: proc (httpStatus: int, response: cstring)) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue