connectrpc / vanguard-go

Support REST, gRPC, gRPC-Web, and Connect clients with one server.
https://pkg.go.dev/connectrpc.com/vanguard
Apache License 2.0
236 stars 14 forks source link

Add tests for proxy configuration #105

Closed emcfarlane closed 8 months ago

emcfarlane commented 1 year ago

Add test coverage for use of httputil.ReverseProxy. Currently on Read when we return a non io.EOF error it will cause the handler to panic which will incorrectly bubble up to the handler without encoding the error. Now we first report the error on prepare message before erroring the read with io.EOF.

Issues: