Skip to content

Commit 3af7310

Browse files
Update startup 503 responses
1 parent 8908da2 commit 3af7310

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

+8-4
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,14 @@ protected async Task RequestHandler(IHttpRequest httpReq, string urlString, stri
636636

637637
if (!string.IsNullOrEmpty(GlobalResponse))
638638
{
639-
httpRes.StatusCode = 503;
640-
httpRes.ContentType = "text/html";
641-
Write(httpRes, GlobalResponse);
642-
return;
639+
// We don't want the address pings in ApplicationHost to fail
640+
if (localPath.IndexOf("system/ping", StringComparison.OrdinalIgnoreCase) == -1)
641+
{
642+
httpRes.StatusCode = 503;
643+
httpRes.ContentType = "text/html";
644+
Write(httpRes, GlobalResponse);
645+
return;
646+
}
643647
}
644648

645649
var handler = GetServiceHandler(httpReq);

0 commit comments

Comments
 (0)