You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a common REST method, and without this change, it's impossible to send the "PATCH" method over HTTP in configurations where the HTTP Gateway and the GRPC Gateway (e.g., the default configuration).
Resolvesizumin5210#301.
When I have an endpoint that uses the
PATCH
method, I can't send HTTP requests to that endpointOther HTTP methods work fine.
This appears to be because
grapiserver
usescmux
to multiplex GRPC and HTTP on the same address:grapi/pkg/grapiserver/cmux.go
Line 36 in cf43ca2
... and uses
cmux
'sHTTP1Fast()
matcher, which does not recognize thePATCH
method:https://github.com/soheilhy/cmux/blob/v0.1.5/matchers.go#L46-L64
With employer approval, I'll send a pull request to pass
"PATCH"
to the call toHTTP1Fast()
ingrapiserver/cmux.go
.Workaround: when I use a different addr for GRPC and HTTP, everything works fine.
The text was updated successfully, but these errors were encountered: