| 1 | Temporary fix for <https://github.com/libgit2/libgit2/issues/7081>.
|
| 2 | Submitted as <https://github.com/libgit2/libgit2/pull/7082>.
|
| 3 |
|
| 4 | diff --git a/src/libgit2/transports/httpclient.c b/src/libgit2/transports/httpclient.c
|
| 5 | index e25e0a73a..ecefbcd3e 100644
|
| 6 | |
| 7 | |
| 8 | @@ -914,6 +914,10 @@ GIT_INLINE(git_http_parser_settings *) http_client_parser_settings(void)
|
| 9 |
|
| 10 | static void reset_parser(git_http_client *client)
|
| 11 | {
|
| 12 | + /* Force the proxy connection to be closed so a fresh connection is
|
| 13 | + opened for the next CONNECT request. */
|
| 14 | + client->proxy_connected = 0;
|
| 15 | +
|
| 16 | git_http_parser_init(&client->parser,
|
| 17 | GIT_HTTP_PARSER_RESPONSE,
|
| 18 | http_client_parser_settings());
|