Commit 9c3e4e97 by Carlos Martín Nieto

http: fix typo in credentials logic

We want to check whether the credentials callback is NULL, not whether
the payload is.
parent 76f76162
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment