fix: add trailing slashes to prevent 307 redirects dropping POST bodies #73

Merged
cal merged 1 commits from fix/trailing-slash-307-redirect into main 2026-03-09 22:26:53 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
9379ba587a fix: add trailing slashes to API URLs to prevent 307 redirects dropping POST bodies
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m13s
The FastAPI server returns 307 redirects for URLs without trailing slashes.
aiohttp follows these redirects but converts POST to GET, silently dropping
the request body. This caused play-by-play and decision data from
/submit-scorecard to never be persisted to the database despite the API
returning success.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 17:25:08 -05:00