]> arthur.barton.de Git - netdata.git/commitdiff
remove double slash from registry hello message #477
authorCosta Tsaousis <costa@tsaousis.gr>
Thu, 2 Jun 2016 14:22:11 +0000 (17:22 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Thu, 2 Jun 2016 14:22:11 +0000 (17:22 +0300)
web/dashboard.js

index 68c3364a6ecdfcc694991f2b3dc17ac3ddce5bce..5de879d18b0632f0799033adc7c09a8b178a666d 100644 (file)
                },
 
                hello: function(host, callback) {
+                       while(host.slice(-1) === '/')
+                               host = host.substring(0, host.length - 1);
+
                        // send HELLO to a netdata server:
                        // 1. verifies the server is reachable
                        // 2. responds with the registry URL, the machine GUID of this netdata server and its hostname