{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/172","repository_url":"https://api.github.com/repos/aspnet/BasicMiddleware","labels_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/172/comments","events_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/172/events","html_url":"https://github.com/aspnet/BasicMiddleware/issues/172","id":187557045,"number":172,"title":"AddRedirectToHttps ignores statusCode","user":{"login":"cincuranet","id":4540597,"avatar_url":"https://avatars.githubusercontent.com/u/4540597?v=3","gravatar_id":"","url":"https://api.github.com/users/cincuranet","html_url":"https://github.com/cincuranet","followers_url":"https://api.github.com/users/cincuranet/followers","following_url":"https://api.github.com/users/cincuranet/following{/other_user}","gists_url":"https://api.github.com/users/cincuranet/gists{/gist_id}","starred_url":"https://api.github.com/users/cincuranet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cincuranet/subscriptions","organizations_url":"https://api.github.com/users/cincuranet/orgs","repos_url":"https://api.github.com/users/cincuranet/repos","events_url":"https://api.github.com/users/cincuranet/events{/privacy}","received_events_url":"https://api.github.com/users/cincuranet/received_events","type":"User","site_admin":false},"labels":[{"id":247558656,"url":"https://api.github.com/repos/aspnet/BasicMiddleware/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC","default":false},{"id":228977614,"url":"https://api.github.com/repos/aspnet/BasicMiddleware/labels/bug","name":"bug","color":"fc2929","default":true},{"id":456434468,"url":"https://api.github.com/repos/aspnet/BasicMiddleware/labels/RewriteMiddleware","name":"RewriteMiddleware","color":"eeeeee","default":false}],"state":"open","locked":false,"assignee":{"login":"mikaelm12","id":4809660,"avatar_url":"https://avatars.githubusercontent.com/u/4809660?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelm12","html_url":"https://github.com/mikaelm12","followers_url":"https://api.github.com/users/mikaelm12/followers","following_url":"https://api.github.com/users/mikaelm12/following{/other_user}","gists_url":"https://api.github.com/users/mikaelm12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelm12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelm12/subscriptions","organizations_url":"https://api.github.com/users/mikaelm12/orgs","repos_url":"https://api.github.com/users/mikaelm12/repos","events_url":"https://api.github.com/users/mikaelm12/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelm12/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikaelm12","id":4809660,"avatar_url":"https://avatars.githubusercontent.com/u/4809660?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelm12","html_url":"https://github.com/mikaelm12","followers_url":"https://api.github.com/users/mikaelm12/followers","following_url":"https://api.github.com/users/mikaelm12/following{/other_user}","gists_url":"https://api.github.com/users/mikaelm12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelm12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelm12/subscriptions","organizations_url":"https://api.github.com/users/mikaelm12/orgs","repos_url":"https://api.github.com/users/mikaelm12/repos","events_url":"https://api.github.com/users/mikaelm12/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelm12/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/BasicMiddleware/milestones/10","html_url":"https://github.com/aspnet/BasicMiddleware/milestones/1.1.0","labels_url":"https://api.github.com/repos/aspnet/BasicMiddleware/milestones/10/labels","id":2065404,"number":10,"title":"1.1.0","description":null,"creator":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":12,"state":"open","created_at":"2016-10-12T16:34:13Z","updated_at":"2016-11-07T16:46:23Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-11-06T11:54:08Z","updated_at":"2016-11-07T17:53:29Z","closed_at":null,"body":"When using the `AddRedirectToHttps` with `statusCode`, the `statusCode` is ignored. It's always `302`. Same applies for `AddRedirectToHttpsPermanent` where 301 is expected. \r\n\r\nI believe the problem is in [`RedirectToHttpsRule` class here][1]. It's using the `Redirect`, which defaults to `302` and the `StatusCode` property is ignored.\r\n\r\n[1]: https://github.com/aspnet/BasicMiddleware/blob/dev/src/Microsoft.AspNetCore.Rewrite/Internal/RedirectToHttpsRule.cs#L34"},"comment":{"url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/comments/258909450","html_url":"https://github.com/aspnet/BasicMiddleware/issues/172#issuecomment-258909450","issue_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/172","id":258909450,"user":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T17:53:29Z","updated_at":"2016-11-07T17:53:29Z","body":"(FYI for folks -- I have made the previous triage edits on the bug, not @cincuranet. Looks like there's a GH issue where it appears to put his name instead of mine.)"}}
{"actor":{"display_login":"muratg"}}