Fix the issue: content-length not equal to message body size, refer to rfc2616