Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
feat(client): Add impersonate_with_headers allows optionally settin…
Browse files Browse the repository at this point in the history
…g request headers
  • Loading branch information
0x676e67 committed Aug 16, 2024
1 parent f45de29 commit 5f2a97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,14 @@ impl ClientBuilder {
fn apply_tls_settings<F>(
mut self,
settings: TlsSettings,
func: F,
header_initializer: F,
set_headers: bool,
) -> ClientBuilder
where
F: FnOnce(&mut HeaderMap),
{
if set_headers {
func(&mut self.config.headers);
header_initializer(&mut self.config.headers);
}
self.config.tls.builder = Some(settings.builder);
self.config.tls.extension = settings.extension;
Expand Down

0 comments on commit 5f2a97d

Please sign in to comment.