diff --git a/fmt/Bean2Link.cpp b/fmt/Bean2Link.cpp index f8a73d0..7abbd2a 100644 --- a/fmt/Bean2Link.cpp +++ b/fmt/Bean2Link.cpp @@ -57,6 +57,7 @@ namespace NekoGui_fmt { if (!stream->path.isEmpty()) query.addQueryItem("serviceName", stream->path); } else if (stream->network == "tcp") { if (stream->header_type == "http") { + if (!stream->path.isEmpty()) query.addQueryItem("path", stream->path); query.addQueryItem("headerType", "http"); query.addQueryItem("host", stream->host); } diff --git a/fmt/Link2Bean.cpp b/fmt/Link2Bean.cpp index bdff875..89c7574 100644 --- a/fmt/Link2Bean.cpp +++ b/fmt/Link2Bean.cpp @@ -83,6 +83,7 @@ namespace NekoGui_fmt { if (GetQueryValue(query, "headerType") == "http") { stream->header_type = "http"; stream->host = GetQueryValue(query, "host", ""); + stream->path = GetQueryValue(query, "path", ""); } } @@ -196,6 +197,7 @@ namespace NekoGui_fmt { } else if (stream->network == "tcp") { if (GetQueryValue(query, "headerType") == "http") { stream->header_type = "http"; + stream->path = GetQueryValue(query, "path", ""); stream->host = GetQueryValue(query, "host", ""); } }