Replaced the deprecated call to sendfile

Now uses sendFile (camelcased)