nvim-lua / plenary.nvim

plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
MIT License
2.69k stars 284 forks source link

feat(curl): add option to disallow redirections #592

Open arielherself opened 4 months ago

arielherself commented 4 months ago

While developing plugins using plenary.nvim, I notice that it calls curl with option -L by default. However, the website I am working with uses status code 302 to mark the login successful, which leads to an infinite redirection in my plugin. I think it would be good to add support for disabling following redirection, so I add a new option redirect which is true by default.