{"action":"created","issue":{"url":"https://api.github.com/repos/evansd/whitenoise/issues/82","repository_url":"https://api.github.com/repos/evansd/whitenoise","labels_url":"https://api.github.com/repos/evansd/whitenoise/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/evansd/whitenoise/issues/82/comments","events_url":"https://api.github.com/repos/evansd/whitenoise/issues/82/events","html_url":"https://github.com/evansd/whitenoise/issues/82","id":146621472,"number":82,"title":"Handling HTTP Range headers (partial content) for video streaming","user":{"login":"bu2","id":227457,"avatar_url":"https://avatars.githubusercontent.com/u/227457?v=3","gravatar_id":"","url":"https://api.github.com/users/bu2","html_url":"https://github.com/bu2","followers_url":"https://api.github.com/users/bu2/followers","following_url":"https://api.github.com/users/bu2/following{/other_user}","gists_url":"https://api.github.com/users/bu2/gists{/gist_id}","starred_url":"https://api.github.com/users/bu2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bu2/subscriptions","organizations_url":"https://api.github.com/users/bu2/orgs","repos_url":"https://api.github.com/users/bu2/repos","events_url":"https://api.github.com/users/bu2/events{/privacy}","received_events_url":"https://api.github.com/users/bu2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T13:18:38Z","updated_at":"2016-04-07T14:53:46Z","closed_at":null,"body":"Hi David, \r\n\r\nI am using Whitenoise and it works great !\r\n\r\nThe only thing is my Django app needs to stream a MP4 video to iOS devices (running a Safari web app). And it seems that modern Safari (iOS 9.x and OS X) refuses to read MP4 videos when the server does not support Range requests ([Hypertext Transfer Protocol (HTTP/1.1): Range Requests](https://tools.ietf.org/html/rfc7233)).\r\n\r\nBasically, the web browser requests the MP4 video with an additional header (ex: RANGE: bytes=0-1023) and the server should respond with the first 1024 bytes of the full response (in my case a video static file).\r\n\r\nDo you see any roadblock if I try to implement support for Range requests in Whitenoise.server() ?\r\n\r\nNote: usually we do not need to handle those kind of requests in pure Python/Django because  Apache/NginX support those headers.\r\n\r\nRegards."},"comment":{"url":"https://api.github.com/repos/evansd/whitenoise/issues/comments/206940336","html_url":"https://github.com/evansd/whitenoise/issues/82#issuecomment-206940336","issue_url":"https://api.github.com/repos/evansd/whitenoise/issues/82","id":206940336,"user":{"login":"bu2","id":227457,"avatar_url":"https://avatars.githubusercontent.com/u/227457?v=3","gravatar_id":"","url":"https://api.github.com/users/bu2","html_url":"https://github.com/bu2","followers_url":"https://api.github.com/users/bu2/followers","following_url":"https://api.github.com/users/bu2/following{/other_user}","gists_url":"https://api.github.com/users/bu2/gists{/gist_id}","starred_url":"https://api.github.com/users/bu2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bu2/subscriptions","organizations_url":"https://api.github.com/users/bu2/orgs","repos_url":"https://api.github.com/users/bu2/repos","events_url":"https://api.github.com/users/bu2/events{/privacy}","received_events_url":"https://api.github.com/users/bu2/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T14:53:46Z","updated_at":"2016-04-07T14:53:46Z","body":"Hi David,\r\n\r\nI just got a first naive implementation that works. So I am going to do some clean up and submit a pull request.\r\n\r\nFor the details: I am working on an embedded systems which will stream medias and should operate online and offline... so there is a lot of specific constraints (this is not a typical web environment). And the fact that the whole app is relying on Python only is a very good thing.\r\n\r\nRegards."}}