Change sendfile() to send the header out coaleseced with the data.