[master] 97cebdec2 Add a notice for *Header VSL records too
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Oct 24 16:58:06 UTC 2019
commit 97cebdec2fe5bc0fc51f51e4c6667864af4be776
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Jul 16 11:02:31 2019 +0200
Add a notice for *Header VSL records too
diff --git a/include/tbl/vsl_tags_http.h b/include/tbl/vsl_tags_http.h
index 5e38ef2da..249e35c98 100644
--- a/include/tbl/vsl_tags_http.h
+++ b/include/tbl/vsl_tags_http.h
@@ -43,6 +43,11 @@
*
*/
+#define HEADER_NOTICE \
+ "NOTE: HTTP header fields are free form records and not strictly\n" \
+ "made of 2 fields. Accessing a specific header with the prefix\n" \
+ "notation helps treating the header value as a single string.\n\n"
+
/*lint -save -e525 -e539 -e835 */
SLTH(Method, HTTP_HDR_METHOD, 1, 0, "method",
@@ -73,6 +78,7 @@ SLTH(Header, HTTP_HDR_FIRST, 1, 1, "header",
"\t| +- Header value\n"
"\t+----- Header name\n"
"\n"
+ HEADER_NOTICE
)
SLTH(Unset, HTTP_HDR_UNSET, 0, 0, "unset header",
@@ -83,12 +89,14 @@ SLTH(Unset, HTTP_HDR_UNSET, 0, 0, "unset header",
"\t| +- Header value\n"
"\t+----- Header name\n"
"\n"
+ HEADER_NOTICE
)
SLTH(Lost, HTTP_HDR_LOST, 0, 0, "lost header",
""
)
+#undef HEADER_NOTICE
#undef SLTH
/*lint -restore */
More information about the varnish-commit
mailing list