Commit 6e649ba
fix(mcp): use relative path for httpx download request (#5003)
## Summary
- The download route's `http.get(f"/tasks/{task_id}/result")` has a
leading `/` which causes httpx to replace the base URL's path (RFC
3986), sending requests to `https://host/tasks/…` instead of
`https://host/api/v0/tasks/…`
- Fix: use relative path `tasks/{id}/result` and ensure `base_url` ends
with trailing `/`
Follow-up to #5001 — caught by AI code review before it hit production.
## Test plan
- [x] 60 tests pass (routes, integration, result_store)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sourced from commit bdcdb323a05f2b27f552d53e136ca6c36e87fd7f1 parent 6b9dbda commit 6e649ba
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
275 | 280 | | |
276 | | - | |
| 281 | + | |
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
280 | | - | |
| 285 | + | |
281 | 286 | | |
282 | 287 | | |
283 | 288 | | |
| |||
0 commit comments