On Mon, Aug 28, 2017 at 2:05 AM Nathaniel Manista <[email protected]> wrote:
> On Sun, Aug 27, 2017 at 6:05 AM, Amit Saha <[email protected]> wrote: > >> On Thursday, March 3, 2016 at 3:11:15 PM UTC+11, Angus Ma wrote: >>> >>> yes, it is possible. >>> >>> client side: >>> >>> metadata = [(b'client', b'foo'), (b'version', b'bar')] >>> response = stub.YourGRPCMessage(request, _TIMEOUT_SECONDS, >>> metadata=metadata) >>> >>> server side: >>> >>> metadata = context.invocation_metadata() >>> metadata_dict = {} >>> for c in metadata: >>> metadata_dict[c.key] = c.value >>> >> >> This seems to have now changed. The metadata now is now simply a list of >> of tuples. >> > > Huh. I didn't think so at first but having looked into it I think you're > right. > > Is there a reason why this was changed? >> > > I can think of a few specific reasons that are likely to have > inadvertently caused the behavior change but the general overall reason is > probably "because we neglected to have test coverage that would have > prevented it". I've filed issue 12301 > <https://github.com/grpc/grpc/issues/12301> to track possibly adding the > capability back. > Thanks for confirming. I have subscribed to the issue. > -Nathaniel > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CANODV3mWOR3eYC%2BioEzJ7D_KGJ3uNEyKdE6jsZD29rx1kYjE4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
