mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-23 06:41:22 -05:00
[GH-ISSUE #298] Don't return html links in API responses #4549
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @lostdusty on GitHub (Jan 1, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/298
I was playing with the api while writing gobalt, and i saw that the api returns html code if the url provided is invalid, shown on the screenshot below:

I believe this shouldn't happen, and the api should return only regular text on the text response body.
@ethrydevelops commented on GitHub (Jan 6, 2024):
it seems as though that is what defines what the cobalt website returns, the api should ideally send an error code and the website shows whatever information should be shown