status-go/protocol/urls
Alex Jbanca 2bcd7e97a6
fix(LinksPreview): Validate image links in the links preview request (#3169)
Motivated by: https://github.com/status-im/status-desktop/pull/9084
While we don't request preview data from Tenor because the url itself will contain the GIF image, we still need to validate the url in the preview request. This is done using a HEAD request where we expect the response status code to be 200 OK.
At the same time we will add the content type to the preview response.
2023-02-08 15:23:55 +02:00
..
urls.go fix(LinksPreview): Validate image links in the links preview request (#3169) 2023-02-08 15:23:55 +02:00
urls_test.go Refactor to urls to try to remove http client use in tests 2022-09-09 15:07:48 +01:00
utils.go Add unfurling for Twitter links 2021-08-16 20:03:10 +02:00