data->state.authwant = CURLAUTH_NONE; /* none */
if(data->state.authwant)
- conn->newurl = strdup(data->change.url); /* clone string */
-
- data->state.authavail = CURLAUTH_NONE; /* clear it here */
+ conn->newurl = strdup(data->change.url); /* clone URL */
}
+ data->state.authavail = CURLAUTH_NONE; /* clear it here */
}
/*
else if(2 == sscanf(line_start, "HTTP/1.%d %d",
&subversion,
&httpcode)) {
- ;
+ /* store the HTTP code */
+ data->info.httpproxycode = httpcode;
}
/* put back the letter we blanked out before */
line_start[perline]= letter;
} while(conn->newurl);
- /* store the HTTP code after the looping is done */
- data->info.httpproxycode = httpcode;
-
if(200 != httpcode) {
failf(data, "Received HTTP code %d from proxy after CONNECT", httpcode);
return CURLE_RECV_ERROR;