Fixed the problems about reading request body.