http header malloc pool implement pool

Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/hpack.c b/lib/hpack.c
index f311d70..2c5b1d9 100644
--- a/lib/hpack.c
+++ b/lib/hpack.c
@@ -221,7 +221,7 @@
 	ah->data[ah->pos++] = c;
 	ah->frags[ah->nfrag].len++;
 
-	return ah->pos >= sizeof(ah->data);
+	return ah->pos >= wsi->context->max_http_header_data;
 }
 
 static int lws_frag_end(struct lws *wsi)