From 7d1b053cedac89ad1c7d72a397f90d1cf50178ca Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 22:08:22 -0800 Subject: [PATCH] Update server.py --- server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 0888fef..8cb9a81 100644 --- a/server.py +++ b/server.py @@ -195,7 +195,7 @@ def relay(): goto = temp.split(" ")[0] prse = urlparse(goto) extra = "" - qury = None + qury = "" extracomment = goto if prse.netloc == "" and prse.scheme == "": isdir = url[len(url) - 1] == "/" @@ -227,7 +227,9 @@ def relay(): comment = goto else: comment = " ".join(temp.split(" ")[1:]) - code += f"

{comment} {extra}

\n" + if qury != "": + qury = "&query=" + quote(qury, safe='') + code += f"

{comment} {extra}

\n" elif i[0:2] == "> ": code += f"

{i}

\n" else: