This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
AddRedirectToHttps ignores statusCode #172
Closed
Description
When using the AddRedirectToHttps
with statusCode
, the statusCode
is ignored. It's always 302
. Same applies for AddRedirectToHttpsPermanent
where 301 is expected.
I believe the problem is in RedirectToHttpsRule
class here. It's using the Redirect
, which defaults to 302
and the StatusCode
property is ignored.