Closed aaydin-tr closed 2 years ago
Not sure if it is possible, since at that point the fetch API has taken over, I guess we would need to manually do the requests for redirects... I don't have the time to do such a large feature though
Would you mind fixing the failing test? and also adding one more test for erroring when follow redirects is off
Do another test with the redirection flag set to false please :)
Will be ready soon 😊
Weird, a couple of other tests broke with a redirection error on the latest run, but not in the first one, any idea why?
interesting, maybe cause github actions server proxy config
re-ran the tests and now they pass... damn, hate heisen-tests, but they have always been flaky, relying on real server responses is never ideal
Anyways, I'll merge it for now and release a new version
released under 2.1.13, thanks for the PR
Thank you so much for attention 👍
https://github.com/ospfranco/link-preview-js/issues/105
@ospfranco Can we have a chance to check the url with regex before the redirect? So maybe that way library can check even if
followRedirects:true