[master] f7592fd Polish
Poul-Henning Kamp
phk at varnish-cache.org
Wed May 22 21:58:44 CEST 2013
commit f7592fd55ea8cb9eb062bf137042d0d21520f559
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed May 22 19:58:39 2013 +0000
Polish
diff --git a/bin/varnishd/cache/cache_http1_proto.c b/bin/varnishd/cache/cache_http1_proto.c
index cf23904..c186646 100644
--- a/bin/varnishd/cache/cache_http1_proto.c
+++ b/bin/varnishd/cache/cache_http1_proto.c
@@ -377,7 +377,7 @@ htc_splitline(struct http *hp, const struct http_conn *htc, int req)
/*--------------------------------------------------------------------*/
static int
-htc_request_check_host_hdr(struct http *hp)
+htc_request_check_host_hdr(const struct http *hp)
{
int u;
int seen_host = 0;
@@ -388,7 +388,8 @@ htc_request_check_host_hdr(struct http *hp)
AN(hp->hd[u].e);
if (http_IsHdr(&hp->hd[u], H_Host)) {
if (seen_host) {
- VSLb(hp->vsl, SLT_Error, "Duplicated Host header");
+ VSLb(hp->vsl, SLT_Error,
+ "Duplicated Host header");
return (400);
}
seen_host = 1;
@@ -397,7 +398,6 @@ htc_request_check_host_hdr(struct http *hp)
return (0);
}
-
/*--------------------------------------------------------------------*/
static void
More information about the varnish-commit
mailing list