solve broken partial file sends
authorAndy Green <andy.green@linaro.org>
Mon, 9 Dec 2013 03:27:07 +0000 (11:27 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 9 Dec 2013 03:27:07 +0000 (11:27 +0800)
commitaa084920213d0f3bfc05a2868a2391c2f9a91dc4
tree272bddf1d8bcbb7963768850a672cbe3fda5f630
parentca1533854552f073ce38172793c98772c88023e9
solve broken partial file sends

We can't force the wsi state to HTTP_BODY without considering the callback
may already have set the state to sending a file.

This fixes the bug that we can get stalled in the test app at
"choked before able to send whole file"

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/handshake.c