From 5f415f04992add9bcb611bffb7bb2e752f52a466 Mon Sep 17 00:00:00 2001 From: Zhouyihai Ding Date: Wed, 20 Mar 2024 14:41:08 -0700 Subject: [PATCH] MaxHeaderListSize return value instead of pointer --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index d00190826ec6..836caa62fda5 100644 --- a/server.go +++ b/server.go @@ -541,7 +541,7 @@ func (o MaxHeaderListSizeServerOption) apply(so *serverOptions) { // MaxHeaderListSize returns a ServerOption that sets the max (uncompressed) size // of header list that the server is prepared to accept. func MaxHeaderListSize(s uint32) ServerOption { - return &MaxHeaderListSizeServerOption{ + return MaxHeaderListSizeServerOption{ MaxHeaderListSize: s, } }