summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/wicket')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/UserPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/UserPage.java b/src/main/java/com/gitblit/wicket/pages/UserPage.java
index e21431d9..6e7e7a76 100644
--- a/src/main/java/com/gitblit/wicket/pages/UserPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/UserPage.java
@@ -252,9 +252,11 @@ public class UserPage extends RootPage {
availableTransports.add(Transport.SSH);
}
if (app().services().isServingHTTP()) {
- availableTransports.add(Transport.HTTPS);
availableTransports.add(Transport.HTTP);
}
+ if (app().services().isServingHTTPS()) {
+ availableTransports.add(Transport.HTTPS);
+ }
if (app().services().isServingGIT()) {
availableTransports.add(Transport.GIT);
}