mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 18:24:19 +00:00
http: fix typo in credentials logic
We want to check whether the credentials callback is NULL, not whether the payload is.
This commit is contained in:
parent
76f76162b2
commit
9c3e4e97f6
@ -260,7 +260,7 @@ static int on_headers_complete(http_parser *parser)
|
||||
|
||||
if (parser->status_code == 401 &&
|
||||
get_verb == s->verb) {
|
||||
if (!t->owner->cred_acquire_payload) {
|
||||
if (!t->owner->cred_acquire_cb) {
|
||||
no_callback = 1;
|
||||
} else {
|
||||
int allowed_types = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user