grpc icon indicating copy to clipboard operation
grpc copied to clipboard

Respond with correct content-type header

Open Bathtor opened this issue 5 years ago • 1 comments

I updated grpc_server to always insert the content-type used by the request (or application/grpc by default) into the response's HTTP headers.

Without this, I couldn't get it to communicate with https://github.com/grpc/grpc-java, since the latter just rejected every message with undefined content-type headers and setting them manually for every single response seemed very inefficient.

Bathtor avatar Aug 18 '19 10:08 Bathtor

It's right !

WangScaler avatar May 17 '21 02:05 WangScaler