From dea4c13677f3a827ccf2e63e7f1d53845aa0822c Mon Sep 17 00:00:00 2001
From: Vojtech Bubnik <bubnikv@gmail.com>
Date: Thu, 3 Dec 2020 14:20:04 +0100
Subject: [PATCH] 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.

---
 src/slic3r/Utils/Http.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/slic3r/Utils/Http.cpp b/src/slic3r/Utils/Http.cpp
index f610c9127..94a8c9a56 100644
--- a/src/slic3r/Utils/Http.cpp
+++ b/src/slic3r/Utils/Http.cpp
@@ -163,13 +163,7 @@ Http::priv::priv(const std::string &url)
 	}
 
 	set_timeout_connect(DEFAULT_TIMEOUT_CONNECT);
-  	char *url_encoded = curl_easy_escape(curl, url.c_str(), url.size());
-  	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_URL, url.c_str());   // curl makes a copy internally
 	::curl_easy_setopt(curl, CURLOPT_USERAGENT, SLIC3R_APP_NAME "/" SLIC3R_VERSION);
 	::curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &error_buffer.front());
 }