summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-07-19 23:56:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-07-19 23:56:33 +0000
commit52b631fadecb5ff5f038badfd79055e7d4272927 (patch)
tree27e4b5c01914b8fab19f458b124fffe8455211b2 /lib/http.c
parent2f0bc9d1f74236bec433d0681f9893db6f22694e (diff)
downloadcurl-52b631fadecb5ff5f038badfd79055e7d4272927.tar.gz
Access the user and passwd fields from the connectdata struct now instead
of the sessionhandle struct, as that was not good.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c3
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)