{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21747","labels_url":"https://api.github.com/repos/rails/rails/issues/21747/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21747/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21747/events","html_url":"https://github.com/rails/rails/issues/21747","id":108081995,"number":21747,"title":" config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' does not do the job","user":{"login":"ciaoben","id":4526061,"avatar_url":"https://avatars.githubusercontent.com/u/4526061?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaoben","html_url":"https://github.com/ciaoben","followers_url":"https://api.github.com/users/ciaoben/followers","following_url":"https://api.github.com/users/ciaoben/following{/other_user}","gists_url":"https://api.github.com/users/ciaoben/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaoben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaoben/subscriptions","organizations_url":"https://api.github.com/users/ciaoben/orgs","repos_url":"https://api.github.com/users/ciaoben/repos","events_url":"https://api.github.com/users/ciaoben/events{/privacy}","received_events_url":"https://api.github.com/users/ciaoben/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-24T08:17:36Z","updated_at":"2015-09-24T08:17:36Z","closed_at":null,"body":"I have put this in my `development.rb`\r\n\r\n     config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'\r\n\r\nBut when I call something like this:\r\n\r\n    send_file path_to_file\r\n    log response.header\r\n\r\n\r\nIt does not add the 'X-Accel-Redirect' header, so Nginx don't do the job\r\nI am using thin server."}}