about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-01-09 11:39:26 +0000
committerEric Wong <e@80x24.org>2024-01-10 10:26:57 +0000
commite5b18ce1fb0a71099db31dbb2b57b220c1815ef7 (patch)
tree94664de265cda63299abdb263f93f425e3dced7e
parentdbdc0b877f0c8f04ad8eb107cfbb17897d33391b (diff)
downloadpublic-inbox-e5b18ce1fb0a71099db31dbb2b57b220c1815ef7.tar.gz
This will make it more effective for use as a cache key.
I'm not entirely happy with this sub being in the Git module
since it's used by lei and command-line tools, but that's
for another day to deal with...
-rw-r--r--lib/PublicInbox/Git.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm
index 7b991c6b..f125b029 100644
--- a/lib/PublicInbox/Git.pm
+++ b/lib/PublicInbox/Git.pm
@@ -505,7 +505,7 @@ sub host_prefix_url ($$) {
         my $host_port = $env->{HTTP_HOST} //
                 "$env->{SERVER_NAME}:$env->{SERVER_PORT}";
         my $sn = $env->{SCRIPT_NAME} // '';
-        "$env->{'psgi.url_scheme'}://$host_port$sn/$url";
+        "$env->{'psgi.url_scheme'}://\L$host_port\E$sn/$url";
 }
 
 sub base_url { # for coderepos, PSGI-only