diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-25 21:39:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-25 21:39:48 +0000 |
commit | 01165e08e0d131b399fba2190f17af67e66f0888 (patch) | |
tree | edabecf2359b409ed1e10f450ace39e859a31807 /lib/http.c | |
parent | 6e1633a6c5f88479998a1e0675818c9d97d9ed90 (diff) |
Fred New reported a bug where we used Basic auth and user name and password in
.netrc, and when following a Location: the subsequent requests didn't properly
use the auth as found in the netrc file. Added test case 257 to verify my fix.
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index c3c805956..f61ce42c4 100644 --- a/lib/http.c +++ b/lib/http.c @@ -465,6 +465,7 @@ Curl_http_output_auth(struct connectdata *conn, /* To prevent the user+password to get sent to other than the original host due to a location-follow, we do some weirdo checks here */ if(!data->state.this_is_a_follow || + conn->bits.netrc || !data->state.first_host || curl_strequal(data->state.first_host, conn->host.name) || data->set.http_disable_hostname_check_before_authentication) { |