Handle HEAD requests properly