Add back Hsts constructor #339
This commit is contained in:
parent
555f36e12e
commit
baf5c7b3e2
|
|
@ -8,6 +8,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.HttpsPolicy.Internal;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
|
|
@ -53,6 +54,14 @@ namespace Microsoft.AspNetCore.HttpsPolicy
|
|||
_logger = loggerFactory.CreateLogger<HstsMiddleware>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize the HSTS middleware.
|
||||
/// </summary>
|
||||
/// <param name="next"></param>
|
||||
/// <param name="options"></param>
|
||||
public HstsMiddleware(RequestDelegate next, IOptions<HstsOptions> options)
|
||||
: this(next, options, NullLoggerFactory.Instance) { }
|
||||
|
||||
/// <summary>
|
||||
/// Invoke the middleware.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
[
|
||||
{
|
||||
"TypeId": "public class Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware",
|
||||
"MemberId": "public .ctor(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> options)",
|
||||
"Kind": "Removal"
|
||||
}
|
||||
]
|
||||
Loading…
Reference in New Issue