diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-29 21:12:44 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-29 21:26:40 +0200 |
commit | 8b3800601866b8a579a1787089673edc6380c1eb (patch) | |
tree | 8e0256a5ada24dcfcb137eec1c0f4d0bfaceb06a | |
parent | c28a5c972d07833f329d319714df8e357caf1108 (diff) | |
download | libgit2-8b3800601866b8a579a1787089673edc6380c1eb.tar.gz |
http: don't give up on auth on the first trycmn/release-fixups
When the server rejects an authentication request, ask the caller for
the credentials again, instead of giving up on the first try.
-rw-r--r-- | src/transports/http.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transports/http.c b/src/transports/http.c index bae2a328d..2110f3226 100644 --- a/src/transports/http.c +++ b/src/transports/http.c @@ -336,8 +336,7 @@ static int on_headers_complete(http_parser *parser) if (!t->owner->cred_acquire_cb) { no_callback = 1; } else { - if (allowed_auth_types && - (!t->cred || 0 == (t->cred->credtype & allowed_auth_types))) { + if (allowed_auth_types) { error = t->owner->cred_acquire_cb(&t->cred, t->owner->url, |