mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
fix no path for tcp with http header (#875)
This commit is contained in:
@@ -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", "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user