Avoid crash when some plugins are installed (#4725)

This commit is contained in:
nicolas.dorier
2023-03-03 20:18:09 +09:00
parent 0566e964c0
commit fdc47e4a38

View File

@@ -10,6 +10,12 @@ namespace BTCPayServer.Filters
Value = value;
}
[Obsolete("Do not use second parameter ignored")]
public XFrameOptionsAttribute(XFrameOptions type, string _ = null) : this(type)
{
}
public XFrameOptionsAttribute(XFrameOptions type)
{
Value = type switch