fix handler options (#941)

pull/942/head
Tony Chen 4 years ago committed by GitHub
parent e2031dcfe6
commit 15d0f22fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      transport/http/handle.go

@ -102,6 +102,9 @@ func NewHandler(handler interface{}, opts ...HandleOption) http.Handler {
out: typ.Out(0).Elem(), out: typ.Out(0).Elem(),
opts: DefaultHandleOptions(), opts: DefaultHandleOptions(),
} }
for _, o := range opts {
o(&h.opts)
}
return h return h
} }

Loading…
Cancel
Save