@cryptotaxi247 / netdata-1 / commits / 9885eeaeb

remove double slash from registry hello message #477

Costa Tsaousis committed Jun 2, 2016 at 17:22 UTC 9885eeaeb415cbd766808e61ffa1af831b8e6849
1 file changed +3
web/dashboard.js
+3
@@ -5578,6 +5578,9 @@
5578 },
5579
5580 hello: function(host, callback) {
5581 + while(host.slice(-1) === '/')
5582 + host = host.substring(0, host.length - 1);
5583 +
5584 // send HELLO to a netdata server:
5585 // 1. verifies the server is reachable
5586 // 2. responds with the registry URL, the machine GUID of this netdata server and its hostname