On a valid request of the
DELETE /api/repos/:nameAPI endpoint, the response has the header
Content-Type: application/json. The response body is an empty string, which does not parse as JSON.
Perhaps the request could return an empty JSON object
It's not a big deal, but maybe this will save someone else a minute of debugging.
Steps to reproduce:
- Create a git repository that contains a build manifest.
- Create a commit with a message that contains a single quote
- Push the commit to
git.sr.ht, initiating an automatic build.
- The build note contains a single quote.
- The build note contains