diff --git a/src/libdoh/src/lib.rs b/src/libdoh/src/lib.rs index ccd615e..f2a2cc9 100644 --- a/src/libdoh/src/lib.rs +++ b/src/libdoh/src/lib.rs @@ -282,7 +282,7 @@ impl DoH { } let mut server = Http::new(); - server.keep_alive(self.globals.keepalive); + server.http1_keep_alive(self.globals.keepalive); server.pipeline_flush(true); let executor = LocalExecutor::new(self.globals.runtime_handle.clone()); let server = server.with_executor(executor);