Explicitly clear fragment from HTTP URL

This commit is contained in:
William Wennerström
2020-07-21 09:48:22 +02:00
parent 62cbad1c6e
commit 7a1eb730b1
2 changed files with 8 additions and 1 deletions

View File

@@ -1767,6 +1767,12 @@ omemo_parse_aesgcm_url(const char* aesgcm_url,
goto out;
}
// Clear fragment from HTTPS URL as it's not required for download.
ret = curl_url_set(url, CURLUPART_FRAGMENT, NULL, curl_flags);
if (ret) {
goto out;
}
ret = curl_url_set(url, CURLUPART_SCHEME, "https", curl_flags);
if (ret) {
goto out;