Skip to content

Commit

Permalink
fix(menu): added body to diagnostics report post request
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tabarra committed Oct 18, 2024
1 parent ab9fa19 commit 61aacd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/main/diagnostics.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 61aacd6

Please sign in to comment.