diff options
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index d710ff5f4..661ccd7d6 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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) |