diff options
Diffstat (limited to 'src/bundleparquet/spliturl.cpp')
| -rw-r--r-- | src/bundleparquet/spliturl.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/bundleparquet/spliturl.cpp b/src/bundleparquet/spliturl.cpp index 91f897d..2b35d4c 100644 --- a/src/bundleparquet/spliturl.cpp +++ b/src/bundleparquet/spliturl.cpp | |||
| @@ -122,16 +122,6 @@ std::optional<SplitUrl> splitUrl(const std::string &url, std::string *error) { | |||
| 122 | 122 | ||
| 123 | schemehost = curl_url_dup(parsed); | 123 | schemehost = curl_url_dup(parsed); |
| 124 | 124 | ||
| 125 | // CURL BUG WORKAROUND: CURLUPART_ZONEID is NOT copied by curl_url_dup! | ||
| 126 | // ^ fixed in CURL 8.3.0 after https://curl.se/mail/lib-2023-07/0047.html | ||
| 127 | rc = curl_url_get(parsed, CURLUPART_ZONEID, &zoneid, 0); | ||
| 128 | if (rc == CURLUE_OK) { | ||
| 129 | rc = curl_url_set(schemehost, CURLUPART_ZONEID, zoneid, 0); | ||
| 130 | if (rc != CURLUE_OK) { | ||
| 131 | errs << "Could not copy zone ID to duplicated URL: " << curl_url_strerror(rc); | ||
| 132 | goto Exit; | ||
| 133 | } | ||
| 134 | } | ||
| 135 | rc = curl_url_set(schemehost, CURLUPART_PORT, nullptr, 0); | 125 | rc = curl_url_set(schemehost, CURLUPART_PORT, nullptr, 0); |
| 136 | if (rc != CURLUE_OK) { | 126 | if (rc != CURLUE_OK) { |
| 137 | errs << "Could not unset port in duplicated URL: " << curl_url_strerror(rc); | 127 | errs << "Could not unset port in duplicated URL: " << curl_url_strerror(rc); |