mh_jy_safe/APT.Utility/HeadHelper.cs

22 lines
528 B
C#
Raw Permalink Normal View History

using APT.Infrastructure.Core;
using Microsoft.AspNetCore.Http;
namespace APT.Utility
{
public class HeadHelper
{
/// <summary>
/// 地球半径
/// </summary>
2025-10-23 15:44:39 +08:00
public const string HeadtelnetCode = "003";
public static bool GetIsHead(IHeaderDictionary Headers)
{
if (Headers != null && Headers.ContainsKey("Tenant") && Headers["Tenant"] == HeadtelnetCode)
{
return true;
}
return false;
}
}
}