fix: "405 Method Not Allowed" when renaming torrent (#551)

This commit is contained in:
Rémi Marseault 2022-11-24 16:23:24 +01:00 committed by GitHub
parent b2ceda28e5
commit 66dc741825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,12 +125,7 @@ export class QBitApi {
}
setTorrentName(hash, name) {
const params = {
hash,
name
}
return this.axios.get('/torrents/rename', { params })
return this.execute('post', '/torrents/rename', { hash, name })
}
getTorrentPieceStates(hash) {