Cleanup logic for http_addr.