Files
hugo/resources
Bjørn Erik Pedersen 842d8f1052 resources: Fix context canceled on GetRemote with per-request timeout
The per-request timeout context was cancelled via defer in the getRes
closure, before io.ReadAll(res.Body) in the outer scope could read
the response body. Fix this by returning the cancel function from
getRes so each caller manages its own cancel lifecycle.

Fixes #14611

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 19:45:14 +01:00
..
2026-03-07 18:30:42 +01:00
2026-03-07 18:30:42 +01:00
2026-03-04 11:38:28 +01:00
2025-11-05 21:05:42 +01:00