mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 00:39:36 +00:00
fix(api): grpc content type matcher all grpc types (#8285)
# Which Problems Are Solved ZITADEL returned a 404 Unimplemented error if the client sent 'application/grpc+proto' or 'application/grpc+json' which are both valid content types. # How the Problems Are Solved changed the header matcher to regexp # Additional Context Problem occured in https://github.com/zitadel/typescript/tree/grpc-transport
This commit is contained in:
parent
86c124955d
commit
aa273ad000
@ -180,7 +180,7 @@ func (a *API) RouteGRPC() {
|
||||
Name("grpc")
|
||||
http2Route.
|
||||
Methods(http.MethodPost).
|
||||
Headers("Content-Type", "application/grpc").
|
||||
HeadersRegexp(http_util.ContentType, `application\/grpc(\+proto|\+json)?`).
|
||||
Handler(a.grpcServer)
|
||||
|
||||
a.routeGRPCWeb()
|
||||
|
Loading…
Reference in New Issue
Block a user