From 61aacd639bfc1964d24121a6fb602b26559f511d Mon Sep 17 00:00:00 2001 From: tabarra <1808295+tabarra@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:19:37 -0300 Subject: [PATCH] fix(menu): added body to diagnostics report post request This is circumvent a NUI bug where the method of POST requests without body end up as GET when they arrive at the webpipe handler. --- web/main/diagnostics.ejs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/main/diagnostics.ejs b/web/main/diagnostics.ejs index d2a5d71fd..d08574f0b 100644 --- a/web/main/diagnostics.ejs +++ b/web/main/diagnostics.ejs @@ -279,6 +279,8 @@ type: "POST", url: `diagnostics/sendReport`, timeout: REQ_TIMEOUT_REALLY_LONG, + //NOTE: in NUI, empty bodies become GET requests even if you specify POST + data: {bugfix:true}, success: function (data) { els.spinnerBody.classList.add('d-none'); els.saveBtn.classList.add('d-none');