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:
parent
e7ebfa06c3
commit
7453b03279
@ -73,14 +73,12 @@ deflate_open(int window_size, struct stream_encoded *stream, int fd)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static int
|
static int
|
||||||
deflate_raw_open(struct stream_encoded *stream, int fd)
|
deflate_raw_open(struct stream_encoded *stream, int fd)
|
||||||
{
|
{
|
||||||
/* raw DEFLATE with neither zlib nor gzip header */
|
/* raw DEFLATE with neither zlib nor gzip header */
|
||||||
return deflate_open(-MAX_WBITS, stream, fd);
|
return deflate_open(-MAX_WBITS, stream, fd);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
deflate_gzip_open(struct stream_encoded *stream, int fd)
|
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 = {
|
const struct decoding_backend deflate_decoding_backend = {
|
||||||
"deflate",
|
"deflate",
|
||||||
deflate_extensions,
|
deflate_extensions,
|
||||||
deflate_gzip_open,
|
deflate_raw_open,
|
||||||
deflate_read,
|
deflate_read,
|
||||||
deflate_raw_decode_buffer,
|
deflate_raw_decode_buffer,
|
||||||
deflate_close,
|
deflate_close,
|
||||||
|
@ -600,7 +600,7 @@ accept_encoding_header(struct string *header)
|
|||||||
|
|
||||||
#ifdef CONFIG_GZIP
|
#ifdef CONFIG_GZIP
|
||||||
if (comma) add_to_string(header, ", ");
|
if (comma) add_to_string(header, ", ");
|
||||||
add_to_string(header, "gzip");
|
add_to_string(header, "deflate, gzip");
|
||||||
comma = 1;
|
comma = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user