Skip to content

Commit f4cd08d

Browse files
committed
fix curl ssl error on windows
1 parent b786a43 commit f4cd08d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ To install or update LODA, please follow the [installation instructions](https:/
44

55
### Bugfixes
66

7+
* Fix `curl` SSL error on some Windows systems
78
* Forbid invalid number formats in parser
89

910
# v22.9.17

src/web_client.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ bool WebClient::get(const std::string &url, const std::string &local_path,
2828
std::string cmd;
2929
switch (WEB_CLIENT_TYPE) {
3030
case WC_CURL:
31-
cmd = "curl -fsSLo \"" + local_path + "\" " + url;
31+
cmd = "curl";
32+
#ifdef _WIN64
33+
// see https://github.com/loda-lang/loda-cpp/issues/178
34+
cmd += " --ssl-no-revoke";
35+
#endif
36+
cmd += " -fsSLo \"" + local_path + "\" " + url;
3237
break;
3338
case WC_WGET:
3439
cmd =

0 commit comments

Comments
 (0)