We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03fc53 commit 49bec41Copy full SHA for 49bec41
src/main/java/com/gitblit/utils/HttpUtils.java
@@ -110,7 +110,9 @@ public static String getGitblitURL(HttpServletRequest request) {
110
sb.append(host);
111
if (("http".equals(scheme) && port != 80)
112
|| ("https".equals(scheme) && port != 443)) {
113
- sb.append(":").append(port);
+ if (!host.endsWith(":" + port)) {
114
+ sb.append(":").append(port);
115
+ }
116
}
117
sb.append(context);
118
return sb.toString();
0 commit comments