Skip to content

Commit

Permalink
beef.net.request JS method now fires callbacks ALWAYS - not just on s…
Browse files Browse the repository at this point in the history
…uccessful requests. Fixes Issue #1127
  • Loading branch information
xntrik committed Jun 23, 2015
1 parent 68c1f87 commit ba990e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/main/client/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ beef.net = {
response.status_code = jqXHR.status;
response.status_text = textStatus;
response.duration = (end_time - start_time);
response.port_status = "open";
},
complete: function (jqXHR, textStatus) {
response.status_code = jqXHR.status;
Expand All @@ -273,7 +274,7 @@ beef.net = {
response.port_status = "open";
}
}
}).done(function () {
}).always(function () {
if (callback != null) {
callback(response);
}
Expand Down

0 comments on commit ba990e2

Please sign in to comment.