Allow KeepAlive controller Ping method to be requested by non local requests (#10126)

* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references
This commit is contained in:
Jeavon
2021-04-13 02:10:44 +01:00
committed by GitHub
parent 4f49e57573
commit c8b6841ef1

View File

@@ -1,14 +1,12 @@
using System.Runtime.Serialization;
using System.Web.Http;
using Umbraco.Web.Mvc;
using Umbraco.Web.WebApi;
using Umbraco.Web.WebApi.Filters;
namespace Umbraco.Web.Editors
{
public class KeepAliveController : UmbracoApiController
{
[OnlyLocalRequests]
[HttpHead]
[HttpGet]
public KeepAlivePingResult Ping()
{