From fd417d0b2c35c12706b92ee6037c0223ebf77f07 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 16 Feb 2022 23:21:55 +0100 Subject: fix(powershell): set security protocol to TLS1.2 (#487) Fixes #480. --- lua/nvim-lsp-installer/core/fetch.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/core/fetch.lua') diff --git a/lua/nvim-lsp-installer/core/fetch.lua b/lua/nvim-lsp-installer/core/fetch.lua index e3204cf2..9e5dc7f0 100644 --- a/lua/nvim-lsp-installer/core/fetch.lua +++ b/lua/nvim-lsp-installer/core/fetch.lua @@ -48,7 +48,8 @@ local function fetch(url, callback, opts) if platform.is_win then local ps_script = { - "$ProgressPreference = 'SilentlyContinue'", + "$ProgressPreference = 'SilentlyContinue';", + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;", ("Write-Output (iwr %s -UseBasicParsing -Uri %q).Content"):format(HEADERS.iwr, url), } table.insert( -- cgit v1.2.3-70-g09d2