diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:22 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:22 +0900 |
commit | be7885cb38b145fc4361200b3351fc2c79e35f3c (patch) | |
tree | 74b4dd183cb74fc723fb2f6c30bc816c9e8debcd /src/http.c | |
parent | 8abe09f3b00fd31d1af24d3038f881034506d651 (diff) | |
download | wget-be7885cb38b145fc4361200b3351fc2c79e35f3c.tar.gz wget-be7885cb38b145fc4361200b3351fc2c79e35f3c.tar.bz2 wget-be7885cb38b145fc4361200b3351fc2c79e35f3c.zip |
Imported Upstream version 1.19.4upstream/1.19.4
Diffstat (limited to 'src/http.c')
-rw-r--r-- | src/http.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3717,7 +3717,7 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs, /* Make sure the Content-Type is not gzip before decompressing */ if (type) { - const char * p = strchr (type, '/'); + p = strchr (type, '/'); if (p == NULL) { hs->remote_encoding = ENC_GZIP; @@ -3744,8 +3744,9 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs, /* don't uncompress if a file ends with '.gz' or '.tgz' */ if (hs->remote_encoding == ENC_GZIP && (p = strrchr(u->file, '.')) - && (c_strcasecmp(p, ".gz") || c_strcasecmp(p, ".tgz"))) + && (c_strcasecmp(p, ".gz") == 0 || c_strcasecmp(p, ".tgz") == 0)) { + DEBUGP (("Enabling broken server workaround. Will not decompress this GZip file.\n")); hs->remote_encoding = ENC_NONE; } } |