- 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:
Rom Walton 2012-01-24 16:29:28 +00:00
parent 3caa013033
commit 188e792365
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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, "");
}