fix server content length bug