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.
2 parents b03fc53 + 49bec41 commit d54dc04Copy full SHA for d54dc04
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