Skip to content

Commit

Permalink
fix no path for tcp with http header (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaznet authored Sep 12, 2023
1 parent 3368698 commit db565a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions fmt/Bean2Link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions fmt/Link2Bean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");
}
}

Expand Down Expand Up @@ -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", "");
}
}
Expand Down

0 comments on commit db565a3

Please sign in to comment.