Skip to content

Commit

Permalink
Update startup 503 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed May 6, 2018
1 parent 8908da2 commit 3af7310
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
Expand Up @@ -636,10 +636,14 @@ protected async Task RequestHandler(IHttpRequest httpReq, string urlString, stri

if (!string.IsNullOrEmpty(GlobalResponse))
{
httpRes.StatusCode = 503;
httpRes.ContentType = "text/html";
Write(httpRes, GlobalResponse);
return;
// We don't want the address pings in ApplicationHost to fail
if (localPath.IndexOf("system/ping", StringComparison.OrdinalIgnoreCase) == -1)
{
httpRes.StatusCode = 503;
httpRes.ContentType = "text/html";
Write(httpRes, GlobalResponse);
return;
}
}

var handler = GetServiceHandler(httpReq);
Expand Down

0 comments on commit 3af7310

Please sign in to comment.