diff --git a/server/router/api/v1/resource_service.go b/server/router/api/v1/resource_service.go index 3004cf24..19e6c6f8 100644 --- a/server/router/api/v1/resource_service.go +++ b/server/router/api/v1/resource_service.go @@ -210,8 +210,13 @@ func (s *APIV1Service) GetResourceBinary(ctx context.Context, request *v1pb.GetR } } + contentType := resource.Type + if strings.HasPrefix(contentType, "text/") { + contentType += "; charset=utf-8" + } + httpBody := &httpbody.HttpBody{ - ContentType: resource.Type, + ContentType: contentType, Data: blob, } return httpBody, nil