Bunch of Http3Response impl.

This commit is contained in:
Alex Hultman
2022-09-28 03:32:24 +02:00
parent 88a3e9aa0e
commit c8982fdde0
3 changed files with 84 additions and 36 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ public:
/* This will do for now, would be better if us_socket_context_remove_server_name returned the user data */
auto *domainRouter = us_socket_context_find_server_name_userdata(SSL, (struct us_socket_context_t *) httpContext, hostname_pattern.c_str());
if (domainRouter) {
delete domainRouter;
delete (HttpRouter<typename HttpContextData<SSL>::RouterData>) domainRouter;
}
us_socket_context_remove_server_name(SSL, (struct us_socket_context_t *) httpContext, hostname_pattern.c_str());