cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Don't return html links in API responses

Open lostdusty opened this issue 1 year ago • 1 comments

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: image

I believe this shouldn't happen, and the api should return only regular text on the text response body.

lostdusty avatar Jan 01 '24 17:01 lostdusty

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

image

ethrythedev avatar Jan 06 '24 11:01 ethrythedev