fix test/http_server crash bug