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
I am using TgoHttpClient with http2 as a client to connect to a gRPC server.
The connection works fine, but if I do a a bad request there is no error. The statuscode is still 200.
gRPC uses a grpc-status and grpc-message header, but I am not able to use this header since it is filtered out for some reason.
I am using TgoHttpClient with http2 as a client to connect to a gRPC server.
The connection works fine, but if I do a a bad request there is no error. The statuscode is still 200.
gRPC uses a
grpc-status
andgrpc-message
header, but I am not able to use this header since it is filtered out for some reason.I found that if I change
frame.headers.cat = NGHTTP2_HCAT_RESPONSE
to(frame.headers.cat in [NGHTTP2_HCAT_RESPONSE,3])
I do get the correct headers. on https://nghttp2.org/documentation/enums.html#c.nghttp2_headers_category I found what 3 means andon https://github.com/ultraware/DelphiGrpc/tree/master/ngHttp2 I found there is constant declared for this.
Example from https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md.
Is the solution to update https://github.com/grijjy/DelphiRemotePushSender with https://github.com/ultraware/DelphiGrpc/tree/master/ngHttp2 and use
NGHTTP2_HCAT_HEADERS
instead of the hardcoded 3 ?The text was updated successfully, but these errors were encountered: