Merge branch 'temp8' into temp8-contentquery-search-culture-3828

This commit is contained in:
Stephan
2018-12-20 13:31:38 +01:00
2 changed files with 7 additions and 2 deletions

View File

@@ -4,6 +4,11 @@ using Umbraco.Web.WebApi;
namespace Umbraco.Web.Editors
{
// fixme
// this is not authenticated, and therefore public, and therefore reveals we
// are running Umbraco - but, all requests should come from localhost really,
// so there should be a way to 404 when the request comes from the outside.
public class KeepAliveController : UmbracoApiController
{
[HttpGet]
@@ -14,7 +19,7 @@ namespace Umbraco.Web.Editors
Success = true,
Message = "I'm alive!"
};
}
}
}
public class KeepAlivePingResult

View File

@@ -59,7 +59,7 @@ namespace Umbraco.Web.Scheduling
return true; // repeat
}
var url = umbracoAppUrl + "api/keepalive/ping";
var url = umbracoAppUrl.TrimEnd('/') + "/api/keepalive/ping";
var request = new HttpRequestMessage(HttpMethod.Get, url);
var result = await _httpClient.SendAsync(request, token);