fix grpc transport

This commit is contained in:
Nova 2025-11-23 19:15:21 +03:30
parent 24b8b47c43
commit ba7f013d79

View File

@ -130,7 +130,10 @@ namespace Configs {
QJsonObject object;
if (type.isEmpty() || type == "tcp") return object;
if (!type.isEmpty()) object["type"] = type;
if (!path.isEmpty()) object["path"] = path;
if (!path.isEmpty()) {
if (type == "grpc") object["service_name"] = path;
else object["path"] = path;
}
if (!method.isEmpty()) object["method"] = method;
if (!headers.isEmpty()) {
object["headers"] = qStringListToJsonObject(headers);