Commit 9c3e4e97f6995bde7879a5907497c35f83ef6b56

Carlos Martín Nieto 2014-06-13T02:35:33

http: fix typo in credentials logic We want to check whether the credentials callback is NULL, not whether the payload is.

1
2
3
4
5
6
7
8
9
10
11
12
13
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;