Fix a bug about HTTP POST unclosing