Skip to content

Commit

Permalink
Merge pull request #73 from Brianggalvez/enable-abort
Browse files Browse the repository at this point in the history
return the HTTPClient  to allow abort the call
  • Loading branch information
jasonkneen authored Dec 3, 2018
2 parents fc587e4 + 9b62526 commit 1340622
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reste.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ var main = function() {

function retry() {
log('Retrying...');
makeHttpRequest(args, onLoad, onError);
return makeHttpRequest(args, onLoad, onError);
}

var error;
Expand Down Expand Up @@ -226,7 +226,7 @@ var main = function() {
} else {
send();
}

return http;
}

// set Requestheaders
Expand Down Expand Up @@ -338,7 +338,7 @@ var main = function() {
}
});

makeHttpRequest({
return makeHttpRequest({
url : url,
method : method,
params : body,
Expand Down Expand Up @@ -370,7 +370,7 @@ var main = function() {
throw 'RESTe :: missing parameter/s ' + missing + ' for method ' + args.name;
} else {

makeHttpRequest({
return makeHttpRequest({
url : url,
method : method,
params : body,
Expand Down

0 comments on commit 1340622

Please sign in to comment.