perf: apply fieldalignement (#1284)

This commit is contained in:
Jason Cameron 2025-11-16 15:43:07 -05:00 committed by GitHub
parent da1890380e
commit 9dd4de6f1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 90 additions and 94 deletions

View file

@ -13,7 +13,7 @@ import (
func TestRedirectSecurity(t *testing.T) {
tests := []struct {
name string
reqHost string
testType string // "constructRedirectURL", "serveHTTPNext", "renderIndex"
// For constructRedirectURL tests
@ -23,17 +23,16 @@ func TestRedirectSecurity(t *testing.T) {
// For serveHTTPNext tests
redirParam string
reqHost string
name string
errorContains string
expectedStatus int
// For renderIndex tests
returnHTTPStatusOnly bool
// Expected results
expectedStatus int
shouldError bool
shouldNotRedirect bool
shouldBlock bool
errorContains string
shouldError bool
shouldNotRedirect bool
shouldBlock bool
}{
// constructRedirectURL tests - X-Forwarded-Proto validation
{