Skip to content

Commit

Permalink
modern sync: suppport proxy in edenapi http client
Browse files Browse the repository at this point in the history
Summary: We need this to be able to reach AWS's edenapi.

Reviewed By: andreacampi

Differential Revision: D66759176

fbshipit-source-id: af9c4ecd376045580b692d4f33907edf6ab7cd0f
  • Loading branch information
lmvasquezg authored and facebook-github-bot committed Dec 5, 2024
1 parent 5f92157 commit 687547c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eden/scm/lib/http-client/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,11 @@ impl Request {
easy.verbose(self.verbose)?;
easy.unix_socket_path(self.auth_proxy_socket_path)?;

match std::env::var("HTTP_PROXY") {
Ok(proxy) => easy.proxy(&proxy)?,
Err(_) => (),
}

// Configure the handle for the desired HTTP method.
match easy.get_ref().request_context().method() {
Method::Get => {}
Expand Down

0 comments on commit 687547c

Please sign in to comment.