Commit 1e929eb5e20b10658709e3d28d109d56b3fb3c3d

Christopher Bargren 2017-02-06T11:00:06

Pass proxy options payload to credentials callback

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index 4f4af00..ae41725 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -1083,7 +1083,7 @@ replay:
 			/* TODO: extract the username from the url, no payload? */
 			if (t->owner->proxy.credentials) {
 				int cred_error = 1;
-				cred_error = t->owner->proxy.credentials(&t->proxy_cred, t->owner->proxy.url, NULL, allowed_types, NULL);
+				cred_error = t->owner->proxy.credentials(&t->proxy_cred, t->owner->proxy.url, NULL, allowed_types, t->owner->proxy.payload);
 
 				if (cred_error < 0)
 					return cred_error;