Better Digest stuff

This commit is contained in:
Daniel Stenberg 2003-05-22 22:39:38 +00:00
parent 9f69deec7d
commit a39d77227f
5 changed files with 38 additions and 10 deletions

View file

@ -670,7 +670,9 @@ CURLcode Curl_http(struct connectdata *conn)
if(result)
return result;
}
else if((conn->bits.user_passwd) && !checkheaders(data, "Authorization:")) {
else if(!data->set.httpdigest && /* not if Digest is enabled */
conn->bits.user_passwd &&
!checkheaders(data, "Authorization:")) {
char *authorization;
/* To prevent the user+password to get sent to other than the original