We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7617d1f commit a807e37Copy full SHA for a807e37
src/transports/httpclient.c
@@ -734,7 +734,7 @@ static int generate_request(
734
git_buf_printf(buf, "Expect: 100-continue\r\n");
735
736
if ((error = apply_server_credentials(buf, client, request)) < 0 ||
737
- (error = apply_proxy_credentials(buf, client, request)) < 0)
+ (!client->proxy_connected && (error = apply_proxy_credentials(buf, client, request)) < 0))
738
return error;
739
740
if (request->custom_headers) {
@@ -1503,7 +1503,7 @@ int git_http_client_skip_body(git_http_client *client)
1503
"unexpected data handled in callback");
1504
error = -1;
1505
}
1506
- } while (!error);
+ } while (error >= 0 && client->state != DONE);
1507
1508
if (error < 0)
1509
client->connected = 0;
0 commit comments