fix: use fetch for DELETE+body to fix file_delete (#649) #20
Reference in New Issue
Block a user
Delete Branch "fix/649-file-delete-body"
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\n\nFixes MokoGitea-Fork#649 (file_delete bug)\n\nnode:https drops the request body on DELETE requests through some proxy/TLS configurations, causing Gitea to see an empty body and return "file already exists" (routes to CREATE handler).\n\nSwitches to built-in fetch() for DELETE requests with a body, which handles this correctly.\n\n## Changes\n\n-
src/client.ts—delete()method usesfetch()when body is present