fixed content-length zero bug