Support auto-redirect for HEAD request