From ba990e286962bc4dbdab8bdf402d23539721122b Mon Sep 17 00:00:00 2001 From: Christian Frichot Date: Tue, 23 Jun 2015 16:21:58 +0800 Subject: [PATCH] beef.net.request JS method now fires callbacks ALWAYS - not just on successful requests. Fixes Issue #1127 --- core/main/client/net.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/main/client/net.js b/core/main/client/net.js index 49413d2007..8ebb56a680 100644 --- a/core/main/client/net.js +++ b/core/main/client/net.js @@ -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); }