mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Use proper request method
This commit is contained in:
parent
d6c92704a1
commit
72941b10bb
5 changed files with 7 additions and 6 deletions
|
@ -1071,6 +1071,7 @@ const initializeWindows = function() {
|
||||||
if (confirm('QBT_TR(Are you sure you want to quit qBittorrent?)QBT_TR[CONTEXT=MainWindow]')) {
|
if (confirm('QBT_TR(Are you sure you want to quit qBittorrent?)QBT_TR[CONTEXT=MainWindow]')) {
|
||||||
new Request({
|
new Request({
|
||||||
url: 'api/v2/app/shutdown',
|
url: 'api/v2/app/shutdown',
|
||||||
|
method: 'post',
|
||||||
onSuccess: function() {
|
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.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();
|
document.close();
|
||||||
|
|
|
@ -35,7 +35,7 @@ MochaUI.extend({
|
||||||
let maximum = 500;
|
let maximum = 500;
|
||||||
new Request({
|
new Request({
|
||||||
url: 'api/v2/transfer/uploadLimit',
|
url: 'api/v2/transfer/uploadLimit',
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {},
|
data: {},
|
||||||
onSuccess: function(data) {
|
onSuccess: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
|
@ -139,7 +139,7 @@ MochaUI.extend({
|
||||||
let maximum = 500;
|
let maximum = 500;
|
||||||
new Request({
|
new Request({
|
||||||
url: 'api/v2/transfer/downloadLimit',
|
url: 'api/v2/transfer/downloadLimit',
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {},
|
data: {},
|
||||||
onSuccess: function(data) {
|
onSuccess: function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
|
|
|
@ -447,7 +447,7 @@
|
||||||
new Request.JSON({
|
new Request.JSON({
|
||||||
url: 'api/v2/rss/items',
|
url: 'api/v2/rss/items',
|
||||||
noCache: true,
|
noCache: true,
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
withData: true
|
withData: true
|
||||||
},
|
},
|
||||||
|
|
|
@ -442,7 +442,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
new Request.JSON({
|
new Request.JSON({
|
||||||
url: 'api/v2/rss/items',
|
url: 'api/v2/rss/items',
|
||||||
noCache: true,
|
noCache: true,
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
withData: false
|
withData: false
|
||||||
},
|
},
|
||||||
|
@ -630,7 +630,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||||
new Request.JSON({
|
new Request.JSON({
|
||||||
url: 'api/v2/rss/matchingArticles',
|
url: 'api/v2/rss/matchingArticles',
|
||||||
noCache: true,
|
noCache: true,
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
ruleName: ruleName
|
ruleName: ruleName
|
||||||
},
|
},
|
||||||
|
|
|
@ -647,7 +647,7 @@
|
||||||
new Request.JSON({
|
new Request.JSON({
|
||||||
url: url,
|
url: url,
|
||||||
noCache: true,
|
noCache: true,
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
id: activeSearchId,
|
id: activeSearchId,
|
||||||
limit: maxResults,
|
limit: maxResults,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue