From 3f0e5e261ea22df24b4beaa88e5843ef7334cc63 Mon Sep 17 00:00:00 2001 From: Takafumi ONAKA Date: Sat, 8 Nov 2025 01:37:14 +0900 Subject: [PATCH] fix: rename path_through_path to pass_through_path Correct typo in the Adapter struct field: `path_through_path` to `pass_through_path`. The typo originated in commit 6b93c4e0 (2024-01-21). This change is internal only and does not affect external behavior or APIs. The field is private, and all public APIs (AdapterOptions, environment variables, documentation) already use the correct `pass_through_path` naming. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;