Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/libgit2/transports/httpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,7 @@ static void complete_response_body(git_http_client *client)
}

done:
client->parser.data = NULL;
git_str_clear(&client->read_buf);
}

Expand Down Expand Up @@ -1441,6 +1442,7 @@ int git_http_client_read_response(
done:
git_str_dispose(&parser_context.parse_header_name);
git_str_dispose(&parser_context.parse_header_value);
client->parser.data = NULL;

return error;
}
Expand Down Expand Up @@ -1496,6 +1498,8 @@ int git_http_client_read_body(
if (error < 0)
client->connected = 0;

client->parser.data = NULL;

return error;
}

Expand Down Expand Up @@ -1530,6 +1534,8 @@ int git_http_client_skip_body(git_http_client *client)
if (error < 0)
client->connected = 0;

client->parser.data = NULL;

return error;
}

Expand Down