Skip to content

Commit 37dcb29

Browse files
committed
Fix handling of absolute URLs (PostResult)
1 parent aa34754 commit 37dcb29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tptools/tpsrv/squoresrv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,9 @@ def _relative_to_absolute_urls(urls_per_line: str, myurl: URL) -> str:
344344
urls: list[str] = []
345345
for urlstr in urls_per_line.splitlines():
346346
if URL(urlstr).is_absolute():
347+
urls.append(urlstr)
347348
continue
349+
348350
urls.append(str(myurl.with_path(urlstr, encoded=True)))
349351
return "\n".join(urls)
350352

0 commit comments

Comments
 (0)