fix: add Host header to HTTP test requests for fasthttp v1.70.0 compatibility

fasthttp v1.70.0 now enforces the HTTP/1.1 requirement of exactly
one Host header, rejecting requests that omit it. Fix tests that
were failing due to missing host.
This commit is contained in:
Ben McClelland
2026-04-13 19:13:58 -07:00
parent ccba8a5736
commit 873148a5c4
6 changed files with 17 additions and 0 deletions
@@ -45,6 +45,7 @@ func TestApplyBucketCORS_FallbackOrigin_NoBucketCors_NoRequestOrigin(t *testing.
if err != nil {
t.Fatalf("new request: %v", err)
}
req.Host = "localhost"
resp, err := app.Test(req)
if err != nil {
@@ -80,6 +81,7 @@ func TestApplyBucketCORS_FallbackOrigin_NotAppliedWhenBucketCorsExists(t *testin
if err != nil {
t.Fatalf("new request: %v", err)
}
req.Host = "localhost"
resp, err := app.Test(req)
if err != nil {