Skip to content

Commit

Permalink
fix: disable ssl verification on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent ed68169 commit 11eca3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_instructions_common.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ fn (req Request) set_common_opts(h &curl.Handle, url string, resp &VibeResponse)
if req.timeout > 0 {
curl.easy_setopt(h, .timeout_ms, req.timeout.milliseconds())
}
$if windows {
curl.easy_setopt(h, .ssl_verifypeer, 0)
curl.easy_setopt(h, .ssl_verifyhost, 0)
}
curl.easy_setopt(h, .url, url)
curl.easy_setopt(h, .header, 1)
curl.easy_setopt(h, .headerdata, resp)
Expand Down

0 comments on commit 11eca3f

Please sign in to comment.