Skip to content

Commit

Permalink
server: correctly route PATCH requests when using RouteHTTPToGRPC (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrhdn committed Aug 8, 2023
1 parent 3f5683f commit 1a21a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func newServer(cfg Config, metrics *Metrics) (*Server, error) {
if cfg.RouteHTTPToGRPC {
grpchttpmux = cmux.New(httpListener)

httpListener = grpchttpmux.Match(cmux.HTTP1Fast())
httpListener = grpchttpmux.Match(cmux.HTTP1Fast("PATCH"))
grpcOnHTTPListener = grpchttpmux.Match(cmux.HTTP2())
}

Expand Down

0 comments on commit 1a21a6b

Please sign in to comment.