{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/StaticFiles/issues/86","labels_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/86/comments","events_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/86/events","html_url":"https://github.com/aspnet/StaticFiles/issues/86","id":119236861,"number":86,"title":"Am I supposed to use UseSendFileFallback post beta-8?","user":{"login":"jods4","id":3832820,"avatar_url":"https://avatars.githubusercontent.com/u/3832820?v=3","gravatar_id":"","url":"https://api.github.com/users/jods4","html_url":"https://github.com/jods4","followers_url":"https://api.github.com/users/jods4/followers","following_url":"https://api.github.com/users/jods4/following{/other_user}","gists_url":"https://api.github.com/users/jods4/gists{/gist_id}","starred_url":"https://api.github.com/users/jods4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jods4/subscriptions","organizations_url":"https://api.github.com/users/jods4/orgs","repos_url":"https://api.github.com/users/jods4/repos","events_url":"https://api.github.com/users/jods4/events{/privacy}","received_events_url":"https://api.github.com/users/jods4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-27T19:03:55Z","updated_at":"2015-12-03T07:09:35Z","closed_at":"2015-11-28T14:15:52Z","body":"I upgraded from beta-7 to rc1.\r\n\r\nAt the end of my pipeline, for any unmatched request, I want to answer with my default application page.\r\nThis is meant to enable deep linking in my SPA on the client side.\r\n\r\nAnyway, the pipline ends with a call to `app.Run(context => ...)` that basically comes down to:\r\n```csharp\r\nvar sendFile = context.Features.Get<IHttpSendFileFeature>();\r\nreturn sendFile.SendFileAsync(\"index.html\", 0, null, default(CancellationToken));\r\n```\r\n\r\nMy app was previously hosted in IIS with Helios, but of course this changed when upgrading from beta-7 to rc1. And suddenly it started to break unexpectedly because `sendFile` is `null`.\r\n\r\nQuestions:\r\n\r\n1. Is this expected? I would have thought that the \"send file feature\" from IIS would maybe flow through, or (more likely) Kestrel would provide its own `IHttpSendFileFeature` (and by that I mean: by default).\r\n2. If this behaviour is intended, then are we supposed to call `app.UseSendFileFallback()`? That was quite unexpected... I would think sending files is major capability of _any_ web server (whether you activate it or not). It should also be noted that I did call `app.UseStaticFiles()` as well somewhere in my startup.\r\n3. Is there any other, simpler way to achieve what I'm doing? I.e. unconditionnally streaming a specific file to any unhandled http request?"},"comment":{"url":"https://api.github.com/repos/aspnet/StaticFiles/issues/comments/161536926","html_url":"https://github.com/aspnet/StaticFiles/issues/86#issuecomment-161536926","issue_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/86","id":161536926,"user":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T07:09:35Z","updated_at":"2015-12-03T07:09:35Z","body":"@jods4 Just a heads up we're going to make this easier https://github.com/aspnet/HttpAbstractions/commit/5b175beea877cb6896e50db12060580bfe7e7940"}}