summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2023-04-07 03:35:07 +0200
committerjak1 <jak1@themanaworld.org>2023-04-07 03:35:07 +0200
commit279c7ba28804960ae3b2ec0753b4c3a92d5a6ede (patch)
treecc21b4e71d3840be1ee4f569497e7fc65d06d99c /src/net/download.cpp
parent3a722d278d2c864e2705833766edf9c6a261dca0 (diff)
downloadmanaverse-279c7ba28804960ae3b2ec0753b4c3a92d5a6ede.tar.gz
manaverse-279c7ba28804960ae3b2ec0753b4c3a92d5a6ede.tar.bz2
manaverse-279c7ba28804960ae3b2ec0753b4c3a92d5a6ede.tar.xz
manaverse-279c7ba28804960ae3b2ec0753b4c3a92d5a6ede.zip
fix formating
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 0c0008d0e..973302c67 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -74,7 +74,7 @@ Download::Download(void *const ptr,
mFormPost(nullptr),
#else
mMime(nullptr),
-#endif // LIBCURL_VERSION_NUM < 0x073800
+#endif // LIBCURL_VERSION_NUM < 0x073800
mError(static_cast<char*>(calloc(CURL_ERROR_SIZE + 1, 1))),
mIgnoreError(ignoreError),
mUpload(isUpload),
@@ -115,7 +115,7 @@ Download::~Download()
curl_mime_free(mMime);
mMime = nullptr;
}
-#endif // LIBCURL_VERSION_NUM < 0x073800
+#endif // LIBCURL_VERSION_NUM < 0x073800
if (mHeaders != nullptr)
@@ -314,7 +314,7 @@ int Download::downloadThread(void *ptr)
curl_easy_setopt(d->mCurl, CURLOPT_HTTPPOST, d->mFormPost);
#else
curl_easy_setopt(d->mCurl, CURLOPT_MIMEPOST, d->mMime);
-#endif // LIBCURL_VERSION_NUM < 0x073800
+#endif // LIBCURL_VERSION_NUM < 0x073800
curl_easy_setopt(d->mCurl, CURLOPT_WRITEFUNCTION,
&Download::writeFunction);
mUploadResponse.clear();
@@ -360,11 +360,11 @@ int Download::downloadThread(void *ptr)
curl_easy_setopt(d->mCurl, CURLOPT_XFERINFOFUNCTION,
&downloadProgress);
-#endif // LIBCURL_VERSION_NUM < 0x072000
+#endif // LIBCURL_VERSION_NUM < 0x072000
curl_easy_setopt(d->mCurl, CURLOPT_PROGRESSDATA, ptr);
#if LIBCURL_VERSION_NUM >= 0x070a00
curl_easy_setopt(d->mCurl, CURLOPT_NOSIGNAL, 1);
-#endif // LIBCURL_VERSION_NUM >= 0x070a00
+#endif // LIBCURL_VERSION_NUM >= 0x070a00
curl_easy_setopt(d->mCurl, CURLOPT_CONNECTTIMEOUT, 30);
curl_easy_setopt(d->mCurl, CURLOPT_TIMEOUT, 1800);
addHeaders(d->mCurl);
@@ -606,7 +606,7 @@ void Download::secureCurl(CURL *const curl A_UNUSED)
CURLPROTO_HTTP | CURLPROTO_HTTPS);
curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS,
CURLPROTO_HTTP | CURLPROTO_HTTPS);
-#endif // LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM <= 0x075500
+#endif // LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM <= 0x075500
#if LIBCURL_VERSION_NUM >= 0x075500
curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR,
"http,https");