diff options
| author | William Boman <william@redwill.se> | 2022-02-16 23:21:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-16 23:21:55 +0100 |
| commit | fd417d0b2c35c12706b92ee6037c0223ebf77f07 (patch) | |
| tree | 37d948516d472810674b04377c0923bb3925a9a4 /lua/nvim-lsp-installer/core/fetch.lua | |
| parent | add labels to issue templates (diff) | |
| download | mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.tar mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.tar.gz mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.tar.bz2 mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.tar.lz mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.tar.xz mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.tar.zst mason-fd417d0b2c35c12706b92ee6037c0223ebf77f07.zip | |
fix(powershell): set security protocol to TLS1.2 (#487)
Fixes #480.
Diffstat (limited to 'lua/nvim-lsp-installer/core/fetch.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/core/fetch.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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( |
