mirror of https://github.com/BOINC/boinc.git
- client: treat the gzt file extension like we do for the gz file extension.
Disable libcurls ability to decompress on-the-fly and let the CC decompress it after it has been fully downloaded. client/ http_curl.cpp svn path=/trunk/boinc/; revision=25138
This commit is contained in:
parent
3caa013033
commit
188e792365
|
@ -949,3 +949,11 @@ David 23 Jan 2012
|
|||
|
||||
html/user/
|
||||
host_app_versions.php
|
||||
|
||||
Rom 24 Jan 2012
|
||||
- client: treat the gzt file extension like we do for the gz file extension.
|
||||
Disable libcurls ability to decompress on-the-fly and let the CC decompress
|
||||
it after it has been fully downloaded.
|
||||
|
||||
client/
|
||||
http_curl.cpp
|
||||
|
|
|
@ -547,7 +547,10 @@ int HTTP_OP::libcurl_exec(
|
|||
// use gzip at the application level.
|
||||
// So, detect this and don't accept any encoding in that case
|
||||
//
|
||||
if (!out || !ends_with(std::string(out), std::string(".gz"))) {
|
||||
if (!out ||
|
||||
!ends_with(std::string(out), std::string(".gz")) ||
|
||||
!ends_with(std::string(out), std::string(".gzt")))
|
||||
{
|
||||
curl_easy_setopt(curlEasy, CURLOPT_ENCODING, "");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue