mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Use proper request method
This commit is contained in:
@@ -1071,6 +1071,7 @@ const initializeWindows = function() {
|
||||
if (confirm('QBT_TR(Are you sure you want to quit qBittorrent?)QBT_TR[CONTEXT=MainWindow]')) {
|
||||
new Request({
|
||||
url: 'api/v2/app/shutdown',
|
||||
method: 'post',
|
||||
onSuccess: function() {
|
||||
document.write('<!doctype html><html lang="${LANG}"><head> <meta charset="UTF-8"> <title>QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</title></head><body> <h1 style="text-align: center;">QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</h1></body></html>');
|
||||
document.close();
|
||||
|
||||
@@ -35,7 +35,7 @@ MochaUI.extend({
|
||||
let maximum = 500;
|
||||
new Request({
|
||||
url: 'api/v2/transfer/uploadLimit',
|
||||
method: 'post',
|
||||
method: 'get',
|
||||
data: {},
|
||||
onSuccess: function(data) {
|
||||
if (data) {
|
||||
@@ -139,7 +139,7 @@ MochaUI.extend({
|
||||
let maximum = 500;
|
||||
new Request({
|
||||
url: 'api/v2/transfer/downloadLimit',
|
||||
method: 'post',
|
||||
method: 'get',
|
||||
data: {},
|
||||
onSuccess: function(data) {
|
||||
if (data) {
|
||||
|
||||
Reference in New Issue
Block a user