Return xhr request object from get and post.

This commit is contained in:
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

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;
}
////////////////////////////////////////////////////////////////////////////////////////////////////