mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-26 08:34:26 +08:00
Revert "Fix of Proxy secured print host URL. Special character on password #4187"
The whole URL line was incorrectly escaped including the http:// prefix, which is not correct. This reverts commit 1b720dbc3d8411c28285844866e89ba3a84884bb.
This commit is contained in:
parent
6fd1143b1c
commit
dea4c13677
@ -163,13 +163,7 @@ Http::priv::priv(const std::string &url)
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_timeout_connect(DEFAULT_TIMEOUT_CONNECT);
|
set_timeout_connect(DEFAULT_TIMEOUT_CONNECT);
|
||||||
char *url_encoded = curl_easy_escape(curl, url.c_str(), url.size());
|
::curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); // curl makes a copy internally
|
||||||
if (url_encoded) {
|
|
||||||
// libcurl makes an internal copy.
|
|
||||||
::curl_easy_setopt(curl, CURLOPT_URL, url_encoded);
|
|
||||||
::curl_free(url_encoded);
|
|
||||||
} else
|
|
||||||
throw Slic3r::RuntimeError(std::string("Curl failed to encode URL: ") + url);
|
|
||||||
::curl_easy_setopt(curl, CURLOPT_USERAGENT, SLIC3R_APP_NAME "/" SLIC3R_VERSION);
|
::curl_easy_setopt(curl, CURLOPT_USERAGENT, SLIC3R_APP_NAME "/" SLIC3R_VERSION);
|
||||||
::curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &error_buffer.front());
|
::curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &error_buffer.front());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user