http: fix typo in credentials logic We want to check whether the credentials callback is NULL, not whether the payload is.
diff --git a/src/transports/http.c b/src/transports/http.c
index a7eff73..ae608ab 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -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;