mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-05 13:15:11 +02:00
fix handler options (#941)
This commit is contained in:
parent
e2031dcfe6
commit
15d0f22fb7
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user