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:
Carlos Martín Nieto 2014-06-13 02:35:33 +02:00
parent 76f76162b2
commit 9c3e4e97f6

View File

@ -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;