[X2Go-Commits] [python-x2go] 03/03: 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 14:09:04 CEST 2017


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

x2go pushed a commit to branch release/0.5.0.x
in repository python-x2go.

commit 5aefebf4b3988d35292fd77ff52e2d5ad68b5e01
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 7925a5d..694bdc6 100644
--- a/x2go/backends/profiles/httpbroker.py
+++ b/x2go/backends/profiles/httpbroker.py
@@ -89,6 +89,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