diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-06 22:41:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-07 02:07:03 +0300 |
commit | a51da75e329df773a01e963c3a27e72cf487138c (patch) | |
tree | c48d7c682be1104138dd16daa75fd12a3fcae82b /src/net/download.cpp | |
parent | 4f7e38d218848bd34bd86dda75446881dad2bb32 (diff) | |
download | mv-a51da75e329df773a01e963c3a27e72cf487138c.tar.gz mv-a51da75e329df773a01e963c3a27e72cf487138c.tar.bz2 mv-a51da75e329df773a01e963c3a27e72cf487138c.tar.xz mv-a51da75e329df773a01e963c3a27e72cf487138c.zip |
fix code style.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r-- | src/net/download.cpp | 8 |
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) { |