diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2017-02-11 00:50:00 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2017-02-11 00:50:00 +0000 |
commit | b137257aa2e7a24e12be556035f119208cdb723c (patch) | |
tree | a72e7ed9ecf1ed5374160ef3e166f9863d9e7652 /WWW/Library | |
parent | 882f462b567855898ed2e47023bed2dfb5e018b0 (diff) | |
download | lynx-snapshots-b137257aa2e7a24e12be556035f119208cdb723c.tar.gz |
snapshot of project "lynx", label v2-8-9dev_11l
Diffstat (limited to 'WWW/Library')
-rw-r--r-- | WWW/Library/Implementation/HTAnchor.h | 3 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTMIME.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTAnchor.h b/WWW/Library/Implementation/HTAnchor.h index c804aff5..e06ed017 100644 --- a/WWW/Library/Implementation/HTAnchor.h +++ b/WWW/Library/Implementation/HTAnchor.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTAnchor.h,v 1.37 2013/10/02 23:21:55 tom Exp $ + * $LynxId: HTAnchor.h,v 1.38 2017/02/10 22:26:48 tom Exp $ * * Hypertext "Anchor" Object HTAnchor.h * ========================== @@ -104,6 +104,7 @@ extern "C" { #ifdef EXP_HTTP_HEADERS HTChunk http_headers; #endif + BOOL no_content_encoding; /* server did not use C-T? */ char *content_type_params; /* Content-Type (with parameters if any) */ char *content_type; /* Content-Type */ char *content_language; /* Content-Language */ diff --git a/WWW/Library/Implementation/HTMIME.c b/WWW/Library/Implementation/HTMIME.c index 77775660..909fbb5e 100644 --- a/WWW/Library/Implementation/HTMIME.c +++ b/WWW/Library/Implementation/HTMIME.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTMIME.c,v 1.92 2016/11/24 18:16:23 tom Exp $ + * $LynxId: HTMIME.c,v 1.93 2017/02/10 22:27:42 tom Exp $ * * MIME Message Parse HTMIME.c * ================== @@ -261,6 +261,8 @@ static int pumpData(HTStream *me) */ CTRACE((tfp, "...address{%s}\n", me->anchor->address)); method = HTContentTypeToCompressType(me->anchor->content_type_params); + if (isEmpty(me->anchor->content_encoding)) + me->anchor->no_content_encoding = TRUE; if ((method != cftNone) && isEmpty(me->anchor->content_encoding) && (new_content = UncompressedContentType(me, method)) != 0) { |