diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-01 22:44:14 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-02 00:01:16 +0100 |
commit | 04c7bdb42e4e8b374d5880358c7911236795fbcb (patch) | |
tree | 5fc9b20b3945e1fde8680bc2cc00f9ed073f8108 /src/diff_driver.c | |
parent | aa8b2c0f6068454d30e9b0f20f424311337a37f1 (diff) | |
download | libgit2-ethomson/http.tar.gz |
httpclient: clear the read_buf on new requestsethomson/http
The httpclient implementation keeps a `read_buf` that holds the data
in the body of the response after the headers have been written. We
store that data for subsequent calls to `git_http_client_read_body`. If
we want to stop reading body data and send another request, we need to
clear that cached data.
Clear the cached body data on new requests, just like we read any
outstanding data from the socket.
Diffstat (limited to 'src/diff_driver.c')
0 files changed, 0 insertions, 0 deletions