mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 00:47:13 +00:00
03888bd266
TransitionClient::new() in crates/s3-client/src/transition_api.rs computes trailing_header_support = opts.trailing_headers && override_signer_type == SignatureV4, but override_signer_type is hardcoded to SignatureDefault at construction and never mutated afterwards, so the expression is always false regardless of opts.trailing_headers. The resulting field also has no live reader: its only reference is inside PutObjectOptions::validate() in crates/s3-client/src/api_put_object.rs, which is itself #[allow(dead_code, reason = "MinIO-parity ... no caller in this port")], and even there the reference to trailing_header_support is commented out. So trailing_headers: true in the seven warm_backend_*.rs constructors has never had any effect on request signing or chunked/trailing-header behavior (stream_sha256 signing is gated separately by metadata.stream_sha256 && !self.secure). Remove the misleading dead configuration from the seven provider constructors so it doesn't look like intentional, load-bearing behavior to future readers. Found during adversarial self-check while implementing rustfs/backlog#2040 (out of that issue's scope).