Second attempt at fixing x-sendfile :)

Signed-off-by: Tom Wright <tom@inflatablecookie.com>