侦听content-length并提前关闭