fix: add trailing slashes to prevent 307 redirects dropping POST bodies #73
No reviewers
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#73
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/trailing-slash-307-redirect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/api/v3/plays→/api/v3/plays/)/submit-scorecardplay-by-play and decision data to never persist despite the API returning successChanges
api/client.py: Ensure_build_url()always appends a trailing slash to prevent 307 redirectstests/test_api_client.py: Update all mock URLs to include trailing slashesImpact
All POST/PUT/PATCH/DELETE requests were affected. GET requests also received unnecessary 307 round-trips (no data loss, just latency). This fix eliminates all redirect overhead.
Test plan
🤖 Generated with Claude Code