Fixed use of deprecated sendFile.