Skip to content

Commit 3f0e5e2

Browse files
committed
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 6b93c4e (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.
1 parent 3467e0b commit 3f0e5e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub struct Adapter<C, B> {
165165
ready_at_init: Arc<AtomicBool>,
166166
domain: Url,
167167
base_path: Option<String>,
168-
path_through_path: String,
168+
pass_through_path: String,
169169
compression: bool,
170170
invoke_mode: LambdaInvokeMode,
171171
authorization_source: Option<String>,
@@ -201,7 +201,7 @@ impl Adapter<HttpConnector, Body> {
201201
healthcheck_min_unhealthy_status: options.readiness_check_min_unhealthy_status,
202202
domain,
203203
base_path: options.base_path.clone(),
204-
path_through_path: options.pass_through_path.clone(),
204+
pass_through_path: options.pass_through_path.clone(),
205205
async_init: options.async_init,
206206
ready_at_init: Arc::new(AtomicBool::new(false)),
207207
compression: options.compression,
@@ -350,7 +350,7 @@ impl Adapter<HttpConnector, Body> {
350350
}
351351

352352
if matches!(request_context, RequestContext::PassThrough) && parts.method == Method::POST {
353-
path = self.path_through_path.as_str();
353+
path = self.pass_through_path.as_str();
354354
}
355355

356356
let mut req_headers = parts.headers;

0 commit comments

Comments
 (0)