fix grpc transport

This commit is contained in:
Nova 2025-11-23 19:15:21 +03:30 committed by parhelia512
parent 6af17981a4
commit 2b5bde651b

View File

@ -126,7 +126,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);