diff options
author | James Moger <james.moger@gitblit.com> | 2014-10-31 10:36:52 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-10-31 10:36:52 -0400 |
commit | 67ba8f57e15ddf8d8dece57a276e37a4b3ef7f01 (patch) | |
tree | 4706678c339b49459a8f7fc698f4648465d56bf5 /src/main/java/com/gitblit/wicket | |
parent | 8a036644cc97e9efcd11839e5f2e5f1cc5822e24 (diff) | |
download | gitblit-67ba8f57e15ddf8d8dece57a276e37a4b3ef7f01.tar.gz gitblit-67ba8f57e15ddf8d8dece57a276e37a4b3ef7f01.zip |
Allow finer-grained determination of available transport preferences
Diffstat (limited to 'src/main/java/com/gitblit/wicket')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/UserPage.java | 4 |
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);
}
|