diff --git a/src/server/conn.rs b/src/server/conn.rs index a6bff85df3..d5370b0f14 100644 --- a/src/server/conn.rs +++ b/src/server/conn.rs @@ -524,7 +524,7 @@ impl Http { /// Default is currently ~16MB, but may change. #[cfg(feature = "http2")] #[cfg_attr(docsrs, doc(cfg(feature = "http2")))] - pub fn max_header_list_size(&mut self, max: u32) -> &mut Self { + pub fn http2_max_header_list_size(&mut self, max: u32) -> &mut Self { self.h2_builder.max_header_list_size = max; self }