object-storage-proxy 0.3.7__tar.gz → 0.3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/Cargo.lock +1 -1
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/Cargo.toml +1 -1
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/PKG-INFO +1 -1
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/lib.rs +10 -1
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/.cargo/config.toml +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/.github/workflows/ci.yml +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/.gitignore +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/LICENSE +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/README.md +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/img/logo.svg +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/img/request_lifecycle.svg +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/img/request_stages.svg +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/pyproject.toml +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/requirements.txt +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/hmac_keystore.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/mod.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/models.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/secrets_proxy.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/signer.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/object_storage_proxy.pyi +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/cos_map.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/credentials.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/keystore.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/mod.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/path.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/utils/mod.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/utils/validator.rs +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/test_integration.sh +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/test_server.py +0 -0
- {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/uv.lock +0 -0
|
@@ -647,14 +647,23 @@ impl ProxyHttp for MyProxy {
|
|
|
647
647
|
// "x-amz-trailer",
|
|
648
648
|
];
|
|
649
649
|
|
|
650
|
+
|
|
650
651
|
let to_check: Vec<String> = upstream_request
|
|
651
652
|
.headers
|
|
652
653
|
.iter()
|
|
653
654
|
.map(|(name, _)| name.as_str().to_owned())
|
|
654
655
|
.collect();
|
|
655
656
|
|
|
657
|
+
// for name in to_check {
|
|
658
|
+
// if !allowed.contains(&name.as_str()) {
|
|
659
|
+
// let _ = upstream_request.remove_header(&name);
|
|
660
|
+
// }
|
|
661
|
+
// }
|
|
662
|
+
|
|
656
663
|
for name in to_check {
|
|
657
|
-
|
|
664
|
+
let keep = allowed.contains(&name.as_str())
|
|
665
|
+
|| name.starts_with("x-amz-checksum-");
|
|
666
|
+
if !keep {
|
|
658
667
|
let _ = upstream_request.remove_header(&name);
|
|
659
668
|
}
|
|
660
669
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|