Author: fw Date: 2008-12-01 19:05:26 +0000 (Mon, 01 Dec 2008) New Revision: 10567
Modified: lib/python/web_support.py Log: lib/python/web_support.py: Include server port in generated URLs This allows us to run the service on a non-default port. Modified: lib/python/web_support.py =================================================================== --- lib/python/web_support.py 2008-12-01 19:05:22 UTC (rev 10566) +++ lib/python/web_support.py 2008-12-01 19:05:26 UTC (rev 10567) @@ -658,6 +658,9 @@ params = cgi.parse(data, environment) path = environment.get('PATH_INFO', '') server_name = environment.get('SERVER_NAME', '') + server_port = environment.get('SERVER_PORT', '') + if server_port and server_port <> 80: + server_name = server_name + ":" + server_port script_name = environment.get('SCRIPT_NAME', '') try: _______________________________________________ Secure-testing-commits mailing list Secure-testing-commits@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/secure-testing-commits