Skip to content

Commit

Permalink
fix(toggle_speed_limits_mode): use POST request method
Browse files Browse the repository at this point in the history
the API previously returned 405 Method Not Allowed for a GET
  • Loading branch information
akosnad committed Nov 8, 2024
1 parent c5496b1 commit 6cb2bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl Qbit {
}

pub async fn toggle_speed_limits_mode(&self) -> Result<()> {
self.get("transfer/toggleSpeedLimitsMode").await?.end()
self.post("transfer/toggleSpeedLimitsMode", None::<&()>).await?.end()
}

pub async fn get_download_limit(&self) -> Result<u64> {
Expand Down

0 comments on commit 6cb2bfa

Please sign in to comment.