From 62e4a21bc733ca3414d5ff83435ebc5e144048a8 Mon Sep 17 00:00:00 2001
From: Ryan Brock <rbrock@zebra.com>
Date: Wed, 10 Sep 2014 16:19:51 -0500
Subject: [PATCH] Continue with HTTP header mangling for status code 101 in
 addition to status codes 200 and above. This is to allow cookie insertion
 based application persistance for WebSocket connections

---
 src/proto_http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/proto_http.c b/src/proto_http.c
index 2494850..b2a6dd6 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -6303,7 +6303,7 @@ int http_process_res_common(struct session *s, struct channel *rep, int an_bit,
 	}
 
 	/* OK that's all we can do for 1xx responses */
-	if (unlikely(txn->status < 200))
+	if (unlikely(txn->status < 200 && txn->status != 101))
 		goto skip_header_mangling;
 
 	/*
-- 
1.9.1

