fix: targeted trailing slashes for POST endpoints (hotfix) #74
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#74
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
_build_urlwhich brokecustom_commands/by_name/{name}/executeendpoints (401 auth errors)plays/,decisions/) that need them to prevent 307 redirects from dropping request bodiesContext
The original fix (commit
9379ba5) added universal trailing slashes to all API URLs to fix 307 redirects dropping POST bodies on/playsand/decisions. This broke the/cccustom command becausecustom_commands/by_name/{name}/execute/returns 401.The targeted approach only adds trailing slashes where actually needed.
Test plan
_build_urlproduces URLs without trailing slashes (won't break custom commands)plays/anddecisions/POST calls use trailing slashes (prevents 307 redirect body loss)🤖 Generated with Claude Code