1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

deflate switched on again.

askubuntu.com uses deflate compression.
This commit is contained in:
Witold Filipczyk 2014-09-01 12:50:23 +02:00
parent e7ebfa06c3
commit 7453b03279
2 changed files with 2 additions and 4 deletions

View File

@ -73,14 +73,12 @@ deflate_open(int window_size, struct stream_encoded *stream, int fd)
return 0;
}
#if 0
static int
deflate_raw_open(struct stream_encoded *stream, int fd)
{
/* raw DEFLATE with neither zlib nor gzip header */
return deflate_open(-MAX_WBITS, stream, fd);
}
#endif
static int
deflate_gzip_open(struct stream_encoded *stream, int fd)
@ -256,7 +254,7 @@ static const unsigned char *const deflate_extensions[] = { NULL };
const struct decoding_backend deflate_decoding_backend = {
"deflate",
deflate_extensions,
deflate_gzip_open,
deflate_raw_open,
deflate_read,
deflate_raw_decode_buffer,
deflate_close,

View File

@ -600,7 +600,7 @@ accept_encoding_header(struct string *header)
#ifdef CONFIG_GZIP
if (comma) add_to_string(header, ", ");
add_to_string(header, "gzip");
add_to_string(header, "deflate, gzip");
comma = 1;
#endif