]> granicus.if.org Git - curl/commitdiff
make empty names look fine in verbose output
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Oct 2003 09:29:30 +0000 (09:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Oct 2003 09:29:30 +0000 (09:29 +0000)
lib/http.c

index 217103c50b85e19da7e6f4cb84896220feffce49..e277194fbd1f43f47ebbe804971013b1ec87b14c 100644 (file)
@@ -238,7 +238,7 @@ CURLcode http_auth_headers(struct connectdata *conn,
         Curl_http_auth_stage(data, 401);
       }
       infof(data, "Proxy auth using %s with user '%s'\n",
-            auth, conn->proxyuser);
+            auth, conn->proxyuser?conn->proxyuser:"");
     }
     /* Send web authentication header if needed */
     if (data->state.authstage == 401) {
@@ -287,7 +287,7 @@ CURLcode http_auth_headers(struct connectdata *conn,
       }
       if(auth)
         infof(data, "Server auth using %s with user '%s'\n",
-              auth, conn->user);
+              auth, conn->user?conn->user:"");
     }
   }
   else