mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
Access the user and passwd fields from the connectdata struct now instead
of the sessionhandle struct, as that was not good.
This commit is contained in:
parent
2f0bc9d1f7
commit
52b631fade
8 changed files with 69 additions and 50 deletions
|
|
@ -650,8 +650,7 @@ static CURLcode Curl_output_basic(struct connectdata *conn)
|
|||
char *authorization;
|
||||
struct SessionHandle *data=conn->data;
|
||||
|
||||
sprintf(data->state.buffer, "%s:%s",
|
||||
data->state.user, data->state.passwd);
|
||||
sprintf(data->state.buffer, "%s:%s", conn->user, conn->passwd);
|
||||
if(Curl_base64_encode(data->state.buffer, strlen(data->state.buffer),
|
||||
&authorization) >= 0) {
|
||||
if(conn->allocptr.userpwd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue