[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev dev20: patch #3 (tiny)
From: |
Leonid Pauzner |
Subject: |
lynx-dev dev20: patch #3 (tiny) |
Date: |
Sat, 27 Mar 1999 22:47:01 +0300 (MSK) |
* Add ETag anchor element (currently not used, only for information) - LP
diff -u old/htmime.c ./htmime.c
--- old/htmime.c Thu Mar 4 02:39:46 1999
+++ ./htmime.c Sat Mar 27 22:20:14 1999
@@ -1469,9 +1469,18 @@
StrAllocCopy(me->anchor->date, me->value);
break;
case miETAG:
- HTMIME_TrimDoubleQuotes(me->value);
- CTRACE(tfp, "HTMIME: PICKED UP ETag: '%s'\n",
+ /* Do not trim double quotes:
+ * an entity tag consists of an opaque quoted string,
+ * possibly prefixed by a weakness indicator.
+ */
+ CTRACE(tfp, "HTMIME: PICKED UP ETag: %s\n",
me->value);
+ if (!(me->value && *me->value))
+ break;
+ /*
+ ** Indicate in anchor. - FM
+ */
+ StrAllocCopy(me->anchor->ETag, me->value);
break;
case miEXPIRES:
HTMIME_TrimDoubleQuotes(me->value);
@@ -1774,6 +1783,7 @@
FREE(me->anchor->date);
FREE(me->anchor->expires);
FREE(me->anchor->last_modified);
+ FREE(me->anchor->ETag);
FREE(me->anchor->server);
me->target = NULL;
me->state = miBEGINNING_OF_LINE;
diff -u old/htanchor.c ./htanchor.c
--- old/htanchor.c Thu Mar 18 11:04:20 1999
+++ ./htanchor.c Sat Mar 27 22:20:12 1999
@@ -91,6 +91,7 @@
newAnchor->date = NULL; /* Date. - FM */
newAnchor->expires = NULL; /* Expires. - FM */
newAnchor->last_modified = NULL; /* Last-Modified. - FM */
+ newAnchor->ETag = NULL; /* ETag (HTTP/1.1 cache validator) */
newAnchor->server = NULL; /* Server. - FM */
return(newAnchor);
}
@@ -706,6 +707,7 @@
FREE(me->date);
FREE(me->expires);
FREE(me->last_modified);
+ FREE(me->ETag);
FREE(me->server);
#ifdef USE_HASH
FREE(me->style);
diff -u old/htanchor.h ./htanchor.h
--- old/htanchor.h Thu Mar 18 11:04:20 1999
+++ ./htanchor.h Sat Mar 27 22:20:14 1999
@@ -94,6 +94,7 @@
char * date; /* Date */
char * expires; /* Expires */
char * last_modified; /* Last-Modified */
+ char * ETag; /* ETag (HTTP1.1 cache validator) */
char * server; /* Server */
UCAnchorInfo *UCStages; /* chartrans stages */
HTList * imaps; /* client side image maps */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev dev20: patch #3 (tiny),
Leonid Pauzner <=