Clean up HttpConfig, close #1660