From a3c12482140ebb7bc9375afc60733219ad935f8d Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 12 Aug 2003 08:20:16 +0000
Subject: [PATCH] Bugfix from Serge Semashko that fixes a bug introduced when
 we applied his NTLM patch. Test case 84 and 85 verify this.

---
 lib/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index 90dc5a63b..e95b40fd9 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -731,7 +731,7 @@ CURLcode Curl_http(struct connectdata *conn)
   char *request;
 
   if(!data->state.authstage) {
-    if(conn->bits.httpproxy)
+    if(conn->bits.httpproxy && conn->bits.proxy_user_passwd)
       Curl_http_auth_stage(data, 407);
     else
       Curl_http_auth_stage(data, 401);
-- 
2.40.0