Fix xsendfile
Merge pull request #2747 from krbvroc1/xsendfile

X-SendFile does not work correctly