Nginx fails to send full file from Node/Express app

Sending large files (1.5gb) to a client with a connection speed < 2mbps results in the browser only receiving 1.08gb of data, but believing the download to be complete. Faster connections receive the full 1.5gb file.

My Express.js app figures out which file to send and responds with the response#download method:

app.get('/download-the-big-file', function(request, response) {
  var file = {
    name: 'awesome.file',
    path: '/files/123-awesome.file'
  };

  response.header("X-Accel-Redirect: " + file.path);

  response.download(file.path, file.name);
});

Notice that I set the X-Accel-Redirect header to leverage NginxXsendfile

My Nginx configuration:

server {

    client_max_body_size 2g;
    server_name localhost;

    location / {
        proxy_pass http://127.0.0.1:8000/;
    }

    location /files {
        root /media/storage;
        internal;
    }
}

I believe the original issue stems from Node (probably sending large files inside Node's I/O loop), and my assumption that Nginx was taking the download from Node properly was incorrect. I had a couple mistakes that meant NginxXSendfile wasn't working, and Node was still handling the response.

I had a syntax error:
To set response headers this is the correct syntax:

response.header('X-Accel-Redirect', file.path);

The body of the response should not be set when using the above header (doh!).
With Express/Connect/Node just #send the response with the X-Accel-Redirect header and set the Content-Disposition with response#attachment:

response.attachment(file.name);
response.send();