diff options
author | John Szakmeister <john@szakmeister.net> | 2021-03-11 21:40:27 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-11 22:17:10 -0800 |
commit | a4a4439fdf2fa5867b3f30040be535cff65b8a42 (patch) | |
tree | 7168dab441c8341be0a57a4868fd3f7aa9f1d4d8 | |
parent | http: store credential when PKI auth is used (diff) | |
download | tgif-a4a4439fdf2fa5867b3f30040be535cff65b8a42.tar.xz |
http: drop the check for an empty proxy password before approving
credential_approve() already checks for a non-empty password before
saving, so there's no need to do the extra check here.
Signed-off-by: John Szakmeister <john@szakmeister.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | http.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1635,8 +1635,7 @@ static int handle_curl_result(struct slot_results *results) if (results->curl_result == CURLE_OK) { credential_approve(&http_auth); - if (proxy_auth.password) - credential_approve(&proxy_auth); + credential_approve(&proxy_auth); credential_approve(&cert_auth); return HTTP_OK; } else if (results->curl_result == CURLE_SSL_CERTPROBLEM) { |