fix http stack err when content-length is zero