aboutsummaryrefslogtreecommitdiff
path: root/ports/cpr
diff options
context:
space:
mode:
Diffstat (limited to 'ports/cpr')
-rw-r--r--ports/cpr/002_cpr_fixcase.patch13
-rw-r--r--ports/cpr/CONTROL2
-rw-r--r--ports/cpr/portfile.cmake1
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/cpr/002_cpr_fixcase.patch b/ports/cpr/002_cpr_fixcase.patch
new file mode 100644
index 000000000..4dbc97119
--- /dev/null
+++ b/ports/cpr/002_cpr_fixcase.patch
@@ -0,0 +1,13 @@
+diff --git a/cpr/error.cpp b/cpr/error.cpp
+index 713cb10..4143f93 100644
+--- a/cpr/error.cpp
++++ b/cpr/error.cpp
+@@ -38,8 +38,6 @@ ErrorCode Error::getErrorCodeForCurlError(std::int32_t curl_code) {
+ return ErrorCode::SSL_LOCAL_CERTIFICATE_ERROR;
+ case CURLE_SSL_CIPHER:
+ return ErrorCode::GENERIC_SSL_ERROR;
+- case CURLE_SSL_CACERT:
+- return ErrorCode::SSL_CACERT_ERROR;
+ case CURLE_USE_SSL_FAILED:
+ return ErrorCode::GENERIC_SSL_ERROR;
+ case CURLE_SSL_ENGINE_INITFAILED:
diff --git a/ports/cpr/CONTROL b/ports/cpr/CONTROL
index 2bf591cc2..89cc6b847 100644
--- a/ports/cpr/CONTROL
+++ b/ports/cpr/CONTROL
@@ -1,4 +1,4 @@
Source: cpr
-Version: 1.3.0-6
+Version: 1.3.0-7
Description: C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.
Build-Depends: curl[core]
diff --git a/ports/cpr/portfile.cmake b/ports/cpr/portfile.cmake
index f6ea8e9af..9e2c40a0d 100644
--- a/ports/cpr/portfile.cmake
+++ b/ports/cpr/portfile.cmake
@@ -10,6 +10,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
001-cpr-config.patch
+ 002_cpr_fixcase.patch
)
vcpkg_configure_cmake(