fix issuing null extension header if none supported
authorAndy Green <andy@warmcat.com>
Thu, 29 Mar 2012 01:27:13 +0000 (09:27 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 29 Mar 2012 01:27:13 +0000 (09:27 +0800)
commit15601fd8f10b9e1b0774235e8a9298c47707f363
treeacf11fb0a7d413b663f96a14e4f9c9ea7740b1b6
parentd515ddd51d6fa0061f4bed865de2dc7ab5cf24fc
fix issuing null extension header if none supported

Josh realized that with new Chrome, because we don't support the type of
compression extension yet we returned a null extension header.

This patch fixes that by deferring issuing the extension header until we
find we have something to say.

tested OK on google-chrome 19.0.1081.2-129295

Reported-by: Josh Roberson <josh@asteriasgi.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/handshake.c