Repository: jena Updated Branches: refs/heads/master 450e4e88c -> b8d408268
Use window.location.protocol Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/b8d40826 Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/b8d40826 Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/b8d40826 Branch: refs/heads/master Commit: b8d408268feea5430810a5e8929965c0b2e12801 Parents: 450e4e8 Author: Andy Seaborne <[email protected]> Authored: Wed Jan 14 11:29:42 2015 +0000 Committer: Andy Seaborne <[email protected]> Committed: Wed Jan 14 11:29:42 2015 +0000 ---------------------------------------------------------------------- .../src/main/webapp/js/app/models/fuseki-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/b8d40826/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js ---------------------------------------------------------------------- diff --git a/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js b/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js index 59d8d31..fef10c1 100644 --- a/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js +++ b/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js @@ -137,7 +137,7 @@ define( /** Extract the server root path from the current window href */ currentRootPath: function() { var path = window.location.pathname.replace( /\/[^/]*$/, "" ); - return sprintf( "http://%s:%s%s", window.location.hostname, window.location.port, path ); + return sprintf( "%s//%s:%s%s", window.location.protocol, window.location.hostname, window.location.port, path ); } } );
