Added compatibility with new HttpServer interface