You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,18 +47,23 @@ function HttpAPI(discovery, settings) {
48
47
});
49
48
50
49
this.requestHandler=function(req,res){
51
-
if(discovery.zones.length===0){
52
-
res.writeHead(500,'No system has been found yet.');
50
+
if(req.url==='/favicon.ico'){
53
51
res.end();
54
-
logger.error('No system has yet been discovered. Please see https://github.com/jishi/node-sonos-http-api/issues/77 if it doesn\'t resolve itself in a few seconds.');
55
52
return;
56
53
}
57
54
58
-
varparams=req.url.substring(1).split('/');
55
+
if(discovery.zones.length===0){
56
+
constmsg='No system has yet been discovered. Please see https://github.com/jishi/node-sonos-http-api/issues/77 if it doesn\'t resolve itself in a few seconds.';
0 commit comments