Skip to content

Commit 9b1260d

Browse files
authored
Merge pull request libgit2#4097 from implausible/fix/auto-detect-proxy-callbacks
Fix proxy auto detect not utilizing callbacks
2 parents e694e4e + 39e76bb commit 9b1260d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/transports/http.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,9 @@ static int apply_proxy_config(http_subtransport *t)
575575
if ((error = git_remote__get_http_proxy(t->owner->owner, !!t->connection_data.use_ssl, &url)) < 0)
576576
return error;
577577

578+
opts.credentials = t->owner->proxy.credentials;
579+
opts.certificate_check = t->owner->proxy.certificate_check;
580+
opts.payload = t->owner->proxy.payload;
578581
opts.type = GIT_PROXY_SPECIFIED;
579582
opts.url = url;
580583
error = git_stream_set_proxy(t->io, &opts);

0 commit comments

Comments
 (0)