diff --git a/transport/http/handle.go b/transport/http/handle.go index b68f0ad02..c70f35f19 100644 --- a/transport/http/handle.go +++ b/transport/http/handle.go @@ -102,6 +102,9 @@ func NewHandler(handler interface{}, opts ...HandleOption) http.Handler { out: typ.Out(0).Elem(), opts: DefaultHandleOptions(), } + for _, o := range opts { + o(&h.opts) + } return h }