added handling of nginx's form of X-Sendfile

With those changes and proper nginx configuration (see http://wiki.nginx.org/XSendfile) the "Use X-Sendfile for File Downloads" option seems to work correctly.