Skip to content

Commit 8dc76af

Browse files
Try to debug redirect loop
1 parent 7ffa187 commit 8dc76af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

homu/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,8 @@ def redirect_to_canonical_host():
10421042
elif redirect_url.path == "/" + prefix:
10431043
redirect_url = redirect_url._replace(path="/")
10441044

1045+
print("request_url=", request_url)
1046+
print("redirect_url=", redirect_url)
10451047
if request_url != redirect_url:
10461048
redirect(urllib.parse.urlunparse(redirect_url), 301)
10471049

0 commit comments

Comments
 (0)