@@ -475,17 +475,15 @@ WebTask WebRequest::send(std::string_view method, std::string_view url) {
475
475
curl_easy_setopt (curl, CURLOPT_SSL_VERIFYHOST, 2L );
476
476
477
477
if (impl->m_certVerification ) {
478
- #ifndef GEODE_IS_WINDOWS
479
478
if (impl->m_CABundleContent .empty ()) {
480
479
impl->m_CABundleContent = CA_BUNDLE_CONTENT;
481
480
}
482
- #endif
483
481
484
482
if (!impl->m_CABundleContent .empty ()) {
485
483
curl_blob caBundleBlob = {};
486
484
caBundleBlob.data = reinterpret_cast <void *>(impl->m_CABundleContent .data ());
487
485
caBundleBlob.len = impl->m_CABundleContent .size ();
488
- caBundleBlob.flags = CURL_BLOB_COPY ;
486
+ caBundleBlob.flags = CURL_BLOB_NOCOPY ;
489
487
curl_easy_setopt (curl, CURLOPT_CAINFO_BLOB, &caBundleBlob);
490
488
// Also add the native CA, for good measure
491
489
curl_easy_setopt (curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA);
@@ -631,12 +629,7 @@ WebTask WebRequest::send(std::string_view method, std::string_view url) {
631
629
}
632
630
}
633
631
634
- // Check if the response was an error code
635
- if (code >= 400 && code <= 600 ) {
636
- return std::move (responseData.response );
637
- }
638
-
639
- // Otherwise resolve with success :-)
632
+ // resolve with success :-)
640
633
return std::move (responseData.response );
641
634
}, fmt::format (" {} {}" , method, url));
642
635
}
0 commit comments