beef.net.request JS method now fires callbacks ALWAYS - not just on successful requests. Fixes Issue #1127
This commit is contained in:
@@ -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;
|
||||
@@ -273,7 +274,7 @@ beef.net = {
|
||||
response.port_status = "open";
|
||||
}
|
||||
}
|
||||
}).done(function () {
|
||||
}).always(function () {
|
||||
if (callback != null) {
|
||||
callback(response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user