about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r--WWW/Library/Implementation/HTAnchor.h3
-rw-r--r--WWW/Library/Implementation/HTMIME.c4
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) {