mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-12-26 02:40:45 +00:00
use default unsecured grpc web options
This commit is contained in:
parent
6594278ead
commit
2916a61b3b
@ -23,7 +23,7 @@ func (s *service) grpcWeb(opts ...grpcweb.Option) error {
|
||||
if !s.opts.grpcWeb {
|
||||
return nil
|
||||
}
|
||||
h := grpcweb.WrapServer(s.server, opts...)
|
||||
h := grpcweb.WrapServer(s.server, append(defaultWebOptions, opts...)...)
|
||||
for _, v := range grpcweb.ListGRPCResources(s.server) {
|
||||
if s.opts.grpcWebPrefix != "" {
|
||||
s.mux.Handle(s.opts.grpcWebPrefix+v, http.StripPrefix(s.opts.grpcWebPrefix, h))
|
||||
|
Loading…
Reference in New Issue
Block a user