[master] 3404553b3 Expose http_IsHdr(), it is useful to iterate over particular headers.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Dec 20 13:18:05 UTC 2021
commit 3404553b34a968a74ae5ccf53b89de2ff377c694
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Dec 20 13:17:35 2021 +0000
Expose http_IsHdr(), it is useful to iterate over particular headers.
diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index aeadda251..0f528d9a2 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -585,6 +585,7 @@ void HTTP_Clone(struct http *to, const struct http * const fm);
void HTTP_Dup(struct http *to, const struct http * const fm);
struct http *HTTP_create(void *p, uint16_t nhttp, unsigned);
const char *http_Status2Reason(unsigned, const char **);
+int http_IsHdr(const txt *hh, hdr_t hdr);
unsigned http_EstimateWS(const struct http *fm, unsigned how);
void http_PutResponse(struct http *to, const char *proto, uint16_t status,
const char *response);
diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index c30d21ee6..516e09648 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -423,7 +423,7 @@ http_PutField(struct http *to, int field, const char *string)
/*--------------------------------------------------------------------*/
-static int
+int
http_IsHdr(const txt *hh, hdr_t hdr)
{
unsigned l;
More information about the varnish-commit
mailing list