= getHost -> getHostname
= using sendFile instead of sendfile due to deprecation of latter