mirror of https://github.com/BOINC/boinc.git
- client: undo my previous commit. We request .gz from the server and write
the contents to a .gzt file. client/ http_curl.cpp svn path=/trunk/boinc/; revision=25142
This commit is contained in:
parent
36c6c529a2
commit
37fa2267c1
|
@ -970,3 +970,10 @@ David 24 Jan 2012
|
||||||
client/
|
client/
|
||||||
client_types.cpp
|
client_types.cpp
|
||||||
cs_files.cpp
|
cs_files.cpp
|
||||||
|
|
||||||
|
Rom 24 Jan 2012
|
||||||
|
- client: undo my previous commit. We request .gz from the server and write
|
||||||
|
the contents to a .gzt file.
|
||||||
|
|
||||||
|
client/
|
||||||
|
http_curl.cpp
|
||||||
|
|
|
@ -547,10 +547,7 @@ int HTTP_OP::libcurl_exec(
|
||||||
// use gzip at the application level.
|
// use gzip at the application level.
|
||||||
// So, detect this and don't accept any encoding in that case
|
// So, detect this and don't accept any encoding in that case
|
||||||
//
|
//
|
||||||
if (!out ||
|
if (!out || !ends_with(std::string(out), std::string(".gz"))) {
|
||||||
!ends_with(std::string(out), std::string(".gz")) ||
|
|
||||||
!ends_with(std::string(out), std::string(".gzt")))
|
|
||||||
{
|
|
||||||
curl_easy_setopt(curlEasy, CURLOPT_ENCODING, "");
|
curl_easy_setopt(curlEasy, CURLOPT_ENCODING, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue