diff --git a/src/lib.rs b/src/lib.rs index b4fb324..4f8e1e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -165,7 +165,7 @@ pub struct Adapter { ready_at_init: Arc, domain: Url, base_path: Option, - path_through_path: String, + pass_through_path: String, compression: bool, invoke_mode: LambdaInvokeMode, authorization_source: Option, @@ -201,7 +201,7 @@ impl Adapter { healthcheck_min_unhealthy_status: options.readiness_check_min_unhealthy_status, domain, base_path: options.base_path.clone(), - path_through_path: options.pass_through_path.clone(), + pass_through_path: options.pass_through_path.clone(), async_init: options.async_init, ready_at_init: Arc::new(AtomicBool::new(false)), compression: options.compression, @@ -350,7 +350,7 @@ impl Adapter { } if matches!(request_context, RequestContext::PassThrough) && parts.method == Method::POST { - path = self.path_through_path.as_str(); + path = self.pass_through_path.as_str(); } let mut req_headers = parts.headers;