fix: avoid sending HEAD bodies over TLS HTTP/2 (#2648)

Signed-off-by: 唐小鸭 <tangtang1251@qq.com>
Signed-off-by: houseme <housemecn@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
唐小鸭
2026-04-25 09:33:08 +08:00
committed by GitHub
parent 7215761784
commit d949d4e794
10 changed files with 701 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
# TLS Bundle Generator
Generate a local TLS/mTLS certificate bundle for RustFS tests with:
```bash
cargo run -p e2e_test --bin tls_gen -- --out-dir target/tls
```
Overwrite an existing bundle with:
```bash
cargo run -p e2e_test --bin tls_gen -- --out-dir target/tls --force
```
Change the validity window with:
```bash
cargo run -p e2e_test --bin tls_gen -- --out-dir target/tls --days 30
```
Generated files:
- `rustfs_cert.pem`
- `rustfs_key.pem`
- `ca.crt`
- `public.crt`
- `client_ca.crt`
- `client_cert.pem`
- `client_key.pem`
Notes:
- The command refuses to overwrite existing bundle files unless `--force` is set.
- `--days` must be a positive integer.
- The default output directory is `target/tls`.