{"action":"created","issue":{"url":"https://api.github.com/repos/johnsensible/django-sendfile/issues/36","labels_url":"https://api.github.com/repos/johnsensible/django-sendfile/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/johnsensible/django-sendfile/issues/36/comments","events_url":"https://api.github.com/repos/johnsensible/django-sendfile/issues/36/events","html_url":"https://github.com/johnsensible/django-sendfile/issues/36","id":73921084,"number":36,"title":"mod_wsgi backend broken on Django 1.8","user":{"login":"kaedroho","id":1093808,"avatar_url":"https://avatars.githubusercontent.com/u/1093808?v=3","gravatar_id":"","url":"https://api.github.com/users/kaedroho","html_url":"https://github.com/kaedroho","followers_url":"https://api.github.com/users/kaedroho/followers","following_url":"https://api.github.com/users/kaedroho/following{/other_user}","gists_url":"https://api.github.com/users/kaedroho/gists{/gist_id}","starred_url":"https://api.github.com/users/kaedroho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaedroho/subscriptions","organizations_url":"https://api.github.com/users/kaedroho/orgs","repos_url":"https://api.github.com/users/kaedroho/repos","events_url":"https://api.github.com/users/kaedroho/events{/privacy}","received_events_url":"https://api.github.com/users/kaedroho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-07T09:46:13Z","updated_at":"2015-07-22T14:19:26Z","closed_at":null,"body":"On Django 1.7 and before, the ``Location`` header that is returned by the mod_wsgi backend is just the path to the file (eg: ``/media/documents/mydoc.pdf``).\r\n\r\nOn Django 1.8, it has ``http://`` appended to the beginning. So the above path has now changed to ``http:///media/documents/mydoc.pdf``."},"comment":{"url":"https://api.github.com/repos/johnsensible/django-sendfile/issues/comments/123737867","html_url":"https://github.com/johnsensible/django-sendfile/issues/36#issuecomment-123737867","issue_url":"https://api.github.com/repos/johnsensible/django-sendfile/issues/36","id":123737867,"user":{"login":"johnsensible","id":176127,"avatar_url":"https://avatars.githubusercontent.com/u/176127?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsensible","html_url":"https://github.com/johnsensible","followers_url":"https://api.github.com/users/johnsensible/followers","following_url":"https://api.github.com/users/johnsensible/following{/other_user}","gists_url":"https://api.github.com/users/johnsensible/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsensible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsensible/subscriptions","organizations_url":"https://api.github.com/users/johnsensible/orgs","repos_url":"https://api.github.com/users/johnsensible/repos","events_url":"https://api.github.com/users/johnsensible/events{/privacy}","received_events_url":"https://api.github.com/users/johnsensible/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T14:19:26Z","updated_at":"2015-07-22T14:19:26Z","body":"I actually dug into the django code a bit.  Looks like they were trying to deal with locations that started with // which would be protocol relative.  They'd then try to put in the scheme + host as part of that.  As I was already monkey-patching the get_host method, it was just adding the http:// on it's own."}}