fix grpc json streaming by setting content sub type (#1089)
This commit is contained in:
@@ -203,9 +203,13 @@ func (g *grpcServer) handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
|
||||
// get content type
|
||||
ct := defaultContentType
|
||||
|
||||
if ctype, ok := md["x-content-type"]; ok {
|
||||
ct = ctype
|
||||
}
|
||||
if ctype, ok := md["content-type"]; ok {
|
||||
ct = ctype
|
||||
}
|
||||
|
||||
delete(md, "x-content-type")
|
||||
delete(md, "timeout")
|
||||
|
Reference in New Issue
Block a user