Closed r17x closed 1 month ago
Hi @r17x, thanks for the PR! Since we're downloading images, should we always follow redirects? I'm thinking it would do what's expected, what do you think?
@3rd
If without the curl_follow_redirect option then only a small commit change is needed in this PR.
I'm okay with the “always redirect” decisition.
Sounds great, do you want to update the PR to just add the -L to track your contribution?
Of course, I have been updated and make "curl always redirect".
@3rd
Thank you so much!
I'm using
image.nvim
with norg, the current plugin isn't support when url is expected will be redirecedt.Example:
.image https://github.com/r17x.png
-- current plugin not supported.image https://github.com/r17x.png
-- in PR, plugin will supported. But, user will be configure with the propertycurl_follow_redirect = true
Changes
require('image').setup({ ..., curl_follow_redirect = true })
-- default:false
Preview