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...
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