make duplicate headers append instead of get ignored
authorNick Dowell <nick@nickdowell.com>
Thu, 5 Apr 2012 02:31:48 +0000 (10:31 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 5 Apr 2012 02:31:48 +0000 (10:31 +0800)
commit3059263e3f3b32204da92e64c72c31d07bda6251
treec365c9d7bf759c2b39484db3b361a5ae9a1a2878
parentc04c193dc36c674bd5eec13af8b5c821367c0d08
make duplicate headers append instead of get ignored

The code to prevent memory leaks caused by reallocating a wsi->utf8_token
was also causing wsi->parser_state to not be updated, preventing the
handshake from completing.

This patch changes the logic to append to previous allocation which is
correct behaviour actually.

Signed-off-by: Nick Dowell <nick@nickdowell.com>
Signed-off-by: Andy Green <andy@warmcat.com>
lib/parsers.c