if (msg instanceof HttpResponse) {
state.resp = (HttpResponse) msg;
if (followRedirects) {
String redirUrl = isRedirect(info, state.resp);
if (redirUrl != null) {
Method meth = state.resp.getStatus().code() == 303 ? Method.GET : Method.valueOf(info.req.getMethod().name());
// Shut off events from the old request
AtomicBoolean ab = new AtomicBoolean(true);
RequestInfo b = new RequestInfo(info.url, info.req, ab, new ResponseFuture(ab), null, info.timeout, info.timer);
ctx.channel().attr(HttpClient.KEY).set(b);
info.handle.event(new State.Redirect(URL.parse(redirUrl)));