Return xhr request object from get and post.

master
voussoir 2021-06-01 17:38:43 -07:00
parent 0694073b70
commit 5e9b7e2dd0
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ function get(url, callback)
{
request = common._request("GET", url, callback);
request.send();
return request;
}
common.post =
@ -146,6 +147,7 @@ function post(url, data, callback)
*/
request = common._request("POST", url, callback);
request.send(data);
return request;
}
////////////////////////////////////////////////////////////////////////////////////////////////////