]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
www: omit SERVER_PORT for standard port redirects
authorEric Wong <e@80x24.org>
Fri, 28 Mar 2025 10:34:09 +0000 (10:34 +0000)
committerEric Wong <e@80x24.org>
Sun, 30 Mar 2025 18:19:35 +0000 (18:19 +0000)
commit1b130400c05d3aad532cf1a397468a8a5ebf93a7
tree84860c0f77886cf51cd8f766a27198e08fdc225f
parent0c0d4f078b3e699946c35daf61e3ceb45c44649b
www: omit SERVER_PORT for standard port redirects

For HTTP requests without a `Host:' header, we can omit
the server port component of the URL if using port 443
for `https' or 80 for plain `http'.  We'll also consistently
use SCRIPT_NAME in all of our tests since Plack requires
it.
lib/PublicInbox/Git.pm
lib/PublicInbox/Hval.pm
lib/PublicInbox/WwwAttach.pm
lib/PublicInbox/WwwStatic.pm
t/feed.t
t/solver_git.t
xt/perf-msgview.t