Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lua/plenary/curl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ all curl methods accepts
http_version = "HTTP version to use: 'HTTP/0.9', 'HTTP/1.0', 'HTTP/1.1', 'HTTP/2', or 'HTTP/3'" (string)
proxy = "[protocol://]host[:port] Use this proxy" (string)
insecure = "Allow insecure server connections" (boolean)
redirect = "Allow redirection" (boolean)

and returns table:

Expand Down Expand Up @@ -214,7 +215,7 @@ parse.request = function(opts)
opts.raw_body = b
end
end
local result = { "-sSL", opts.dump }
local result = { "-sS", opts.dump }
local append = function(v)
if v then
table.insert(result, v)
Expand All @@ -230,6 +231,9 @@ parse.request = function(opts)
if opts.compressed then
table.insert(result, "--compressed")
end
if opts.redirect ~= false then
table.insert(result, '-L')
end
append(parse.method(opts.method))
append(parse.headers(opts.headers))
append(parse.accept_header(opts.accept))
Expand Down