aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/arch/unix/ArchInternetUnix.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-11-10 00:54:35 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-11-10 00:54:35 -0500
commit58fb7a0cee13d84170aac52f3f89d91888e1afe3 (patch)
tree1d6312ba15f9ece5a8031e5280dfb8b38be8dfa3 /src/lib/arch/unix/ArchInternetUnix.cpp
parent28db84b46139c9bb2bbcac8c6cc56e71d1e35629 (diff)
parentbeb08eb751fa8e1f72042f263316ab5e5ddb596d (diff)
Update upstream source from tag 'upstream/2.4.0+dfsg'
Update to upstream version '2.4.0+dfsg' with Debian dir 4b6668cc08c7b0e56b1e1f7b4e89ecdb316182a0
Diffstat (limited to 'src/lib/arch/unix/ArchInternetUnix.cpp')
-rw-r--r--src/lib/arch/unix/ArchInternetUnix.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/arch/unix/ArchInternetUnix.cpp b/src/lib/arch/unix/ArchInternetUnix.cpp
index 76966dc..dcea2ae 100644
--- a/src/lib/arch/unix/ArchInternetUnix.cpp
+++ b/src/lib/arch/unix/ArchInternetUnix.cpp
@@ -94,16 +94,16 @@ std::string CurlFacade::get(const std::string& url)
userAgent << "Barrier ";
userAgent << kVersion;
curl_easy_setopt(m_curl, CURLOPT_USERAGENT, userAgent.str().c_str());
-
+
std::string result;
curl_easy_setopt(m_curl, CURLOPT_WRITEDATA, &result);
-
+
CURLcode code = curl_easy_perform(m_curl);
if (code != CURLE_OK) {
LOG((CLOG_ERR "curl perform error: %s", curl_easy_strerror(code)));
throw XArch("CURL perform failed.");
}
-
+
return result;
}
@@ -114,7 +114,7 @@ std::string CurlFacade::urlEncode(const std::string& url)
if (resultCStr == NULL) {
throw XArch("CURL escape failed.");
}
-
+
std::string result(resultCStr);
curl_free(resultCStr);