}
else
#endif
- if((data->state.authwant == CURLAUTH_BASIC) && /* Basic */
- conn->bits.proxy_user_passwd &&
- !checkheaders(data, "Proxy-authorization:")) {
- auth=(char *)"Basic";
- result = Curl_output_basic_proxy(conn);
- if(result)
- return result;
+ if(data->state.authwant == CURLAUTH_BASIC) {
+ /* Basic */
+ if(conn->bits.proxy_user_passwd &&
+ !checkheaders(data, "Proxy-authorization:")) {
+ auth=(char *)"Basic";
+ result = Curl_output_basic_proxy(conn);
+ if(result)
+ return result;
+ }
*ready = TRUE;
/* Switch to web authentication after proxy authentication is done */
Curl_http_auth_stage(data, 401);
return result;
*ready = TRUE;
}
- else if((data->state.authwant == CURLAUTH_BASIC) && /* Basic */
- conn->bits.user_passwd &&
- !checkheaders(data, "Authorization:")) {
- auth=(char *)"Basic";
- result = Curl_output_basic(conn);
- if(result)
- return result;
+ else if(data->state.authwant == CURLAUTH_BASIC) {/* Basic */
+ if(conn->bits.user_passwd &&
+ !checkheaders(data, "Authorization:")) {
+ auth=(char *)"Basic";
+ result = Curl_output_basic(conn);
+ if(result)
+ return result;
+ }
+ /* basic is always ready */
*ready = TRUE;
}
}