Skip to content

Commit f7926e5

Browse files
committed
Fix. find_ca_bundle should return nil if there no file.
1 parent 1285ae4 commit f7926e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lua/cURL/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ local function find_ca_bundle(name)
3535
end
3636

3737
if env.SSL_CERT_DIR and path.isdir(env.SSL_CERT_DIR) then
38-
return false, env.SSL_CERT_DIR
38+
return nil, env.SSL_CERT_DIR
3939
end
4040

4141
if env.SSL_CERT_FILE and path.isfile(env.SSL_CERT_FILE) then

0 commit comments

Comments
 (0)