Skip to content

Commit 61aacd6

Browse files
committed
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.
1 parent ab9fa19 commit 61aacd6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

web/main/diagnostics.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@
279279
type: "POST",
280280
url: `diagnostics/sendReport`,
281281
timeout: REQ_TIMEOUT_REALLY_LONG,
282+
//NOTE: in NUI, empty bodies become GET requests even if you specify POST
283+
data: {bugfix:true},
282284
success: function (data) {
283285
els.spinnerBody.classList.add('d-none');
284286
els.saveBtn.classList.add('d-none');

0 commit comments

Comments
 (0)