From 028c43d49b7de170023f74014800948318425713 Mon Sep 17 00:00:00 2001 From: Ruben Rosario Date: Sun, 21 Jun 2026 16:41:46 +0100 Subject: [PATCH] Fix 411 Length Required on move_task API call Google Tasks move endpoint requires Content-Length header even on POST requests with no body. --- src/infrastructure/api.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/api.rs b/src/infrastructure/api.rs index 4b7e505..5134731 100644 --- a/src/infrastructure/api.rs +++ b/src/infrastructure/api.rs @@ -441,7 +441,11 @@ impl ApiClient { req = req.query(&[("destinationTaskList", s)]); } - let resp = req.send().await.map_err(|e| ApiError::Network(e.to_string()))?; + let resp = req + .header(reqwest::header::CONTENT_LENGTH, "0") + .send() + .await + .map_err(|e| ApiError::Network(e.to_string()))?; if !resp.status().is_success() { let status = resp.status();