diff options
-rw-r--r-- | net/haproxy/Makefile | 1 | ||||
-rw-r--r-- | net/haproxy/files/patch-src-session.c | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 506b222..e90fb62 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -3,6 +3,7 @@ PORTNAME= haproxy PORTVERSION= 1.4.24 +PORTREVISION= 1 CATEGORIES= net www MASTER_SITES= http://haproxy.1wt.eu/download/1.4/src/ diff --git a/net/haproxy/files/patch-src-session.c b/net/haproxy/files/patch-src-session.c new file mode 100644 index 0000000..051dfcd --- /dev/null +++ b/net/haproxy/files/patch-src-session.c @@ -0,0 +1,15 @@ +--- src/session.c.orig 2013-06-17 17:28:14.000000000 +0400 ++++ src/session.c 2013-10-25 22:01:39.000000000 +0400 +@@ -1428,9 +1428,9 @@ + /* Now we can add the server name to a header (if requested) */ + /* check for HTTP mode and proxy server_name_hdr_name != NULL */ + if ((s->flags & SN_BE_ASSIGNED) && +- (s->be->mode == PR_MODE_HTTP) && +- (s->be->server_id_hdr_name != NULL)) { +- ++ (s->be->mode == PR_MODE_HTTP) && ++ (s->be->server_id_hdr_name != NULL) && ++ (s->srv)) { + http_send_name_header(&s->txn, + &s->txn.req, + s->req, |