summaryrefslogtreecommitdiff
path: root/tests/diff/workdir.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-02-06 11:10:27 +0100
committerPatrick Steinhardt <ps@pks.im>2020-02-07 11:13:43 +0100
commit46228d86f876f0602cff5b08af8531b758bdf6ac (patch)
tree9fda97e61655bacb8ca623657eb5b0f4092bf9bc /tests/diff/workdir.c
parentbd6b1c41575e7cc011798a424b6564569887c293 (diff)
downloadlibgit2-46228d86f876f0602cff5b08af8531b758bdf6ac.tar.gz
transports: http: fix custom headers not being applied
In commit b9c5b15a7 (http: use the new httpclient, 2019-12-22), the HTTP code got refactored to extract a generic HTTP client that operates independently of the Git protocol. Part of refactoring was the creation of a new `git_http_request` struct that encapsulates the generation of requests. Our Git-specific HTTP transport was converted to use that in `generate_request`, but during the process we forgot to set up custom headers for the `git_http_request` and as a result we do not send out these headers anymore. Fix the issue by correctly setting up the request's custom headers and add a test to verify we correctly send them.
Diffstat (limited to 'tests/diff/workdir.c')
0 files changed, 0 insertions, 0 deletions