In commit b9c5b15a (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.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| auth.c | Loading commit data... | |
| auth.h | Loading commit data... | |
| auth_negotiate.c | Loading commit data... | |
| auth_negotiate.h | Loading commit data... | |
| auth_ntlm.c | Loading commit data... | |
| auth_ntlm.h | Loading commit data... | |
| credential.c | Loading commit data... | |
| credential_helpers.c | Loading commit data... | |
| git.c | Loading commit data... | |
| http.c | Loading commit data... | |
| http.h | Loading commit data... | |
| httpclient.c | Loading commit data... | |
| httpclient.h | Loading commit data... | |
| local.c | Loading commit data... | |
| smart.c | Loading commit data... | |
| smart.h | Loading commit data... | |
| smart_pkt.c | Loading commit data... | |
| smart_protocol.c | Loading commit data... | |
| ssh.c | Loading commit data... | |
| ssh.h | Loading commit data... | |
| winhttp.c | Loading commit data... |