fix POST method cause crash bug, fix incorrect content len from uwsgi upstream bug, refactor some code.