summaryrefslogtreecommitdiff
path: root/src/libgit2/transports/httpclient.c
Commit message (Collapse)AuthorAgeFilesLines
* http: Update httpclient options when reusing an existing connection.Sebastian Lackner2022-10-201-0/+9
| | | | | | | | | | Httpclient internally stores a copy of the certificate_check callback and payload. When connecting via HTTPS, and if the server sends back "Connection: close" after the first request, the following request would attempt to re-use the httpclient and call the (now outdated) callback. In particular for pygit2 this is a problem, since callbacks / payloads are only valid for the duration of a libgit2 call, leading to a ffi.from_handle() error and crashing the Python interpreter.
* http: skip processing when body is null or 0 lengthEdward Thomson2022-02-271-1/+1
| | | | Mistakenly `&&` when we should have `||`d.
* refactor: `src` is now `src/libgit2`Edward Thomson2022-02-221-0/+1579