fix 0bytes problem. http client close too soon