[X2Go-Commits] [python-x2go] 10/11: x2go/backends/profiles/httpbroker.py: Fix broker URL assembling when no port is given (i.e. convert None to '' manually).

git-admin at x2go.org git-admin at x2go.org
Mon Sep 25 12:44:54 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit 9187855cb36fd3913378c9797c32c640727a750f
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Sep 25 12:43:12 2017 +0200

    x2go/backends/profiles/httpbroker.py: Fix broker URL assembling when no port is given (i.e. convert None to '' manually).
---
 x2go/backends/profiles/httpbroker.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x2go/backends/profiles/httpbroker.py b/x2go/backends/profiles/httpbroker.py
index 224f427..f9a1cc7 100644
--- a/x2go/backends/profiles/httpbroker.py
+++ b/x2go/backends/profiles/httpbroker.py
@@ -94,6 +94,8 @@ class X2GoSessionProfiles(base.X2GoSessionProfiles):
             p['path'] = "/{path}".format(**p)
             if p['port'] is not None:
                 p['port'] = ":{port}".format(**p)
+            else:
+                p['port'] = ''
 
             self.broker_url = "{protocol}://{hostname}{port}{path}".format(**p)
 

--
Alioth's /srv/git/code.x2go.org/python-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list