Support returning Content-Length from self-hosting when calling with HEAD request