write immediately if status code is http.StatusFound