Skip to content

Commit

Permalink
add option to marschal with protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Feb 18, 2025
1 parent 8e081cf commit 3421e74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func (s *Server) startGRPC() error {
func (s *Server) startHTTP() error {
mux := http.NewServeMux()
gwmux := runtime.NewServeMux(
runtime.WithMarshalerOption("application/x-protobuf", &runtime.ProtoMarshaller{}),
runtime.WithErrorHandler(runtime.DefaultHTTPErrorHandler),
runtime.WithStreamErrorHandler(runtime.DefaultStreamErrorHandler),
runtime.WithIncomingHeaderMatcher(incomingHeaderMatcher),
Expand Down

0 comments on commit 3421e74

Please sign in to comment.