summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-06 22:41:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 02:07:03 +0300
commita51da75e329df773a01e963c3a27e72cf487138c (patch)
treec48d7c682be1104138dd16daa75fd12a3fcae82b /src/net/download.cpp
parent4f7e38d218848bd34bd86dda75446881dad2bb32 (diff)
downloadmanaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.gz
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.bz2
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.xz
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.zip
fix code style.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 03e258b38..069290cde 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -569,12 +569,16 @@ void Download::secureCurl(CURL *const curl)
#endif
}
+#if CURLVERSION_ATLEAST(7, 21, 7)
void Download::addHeaders(CURL *const curl)
{
-#if CURLVERSION_ATLEAST(7, 21, 7)
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
-#endif
}
+#else
+void Download::addHeaders(CURL *const curl A_UNUSED)
+{
+}
+#endif
void Download::prepareForm(curl_httppost **form, const std::string &fileName)
{