From 7ae39c4d144d6ce762236e4cff83b26882cb946b Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez Date: Thu, 25 Jul 2024 00:33:34 -0400 Subject: [PATCH] Align structs --- redirect.go | 2 +- redirect_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redirect.go b/redirect.go index d09600fe..2f5585bd 100644 --- a/redirect.go +++ b/redirect.go @@ -60,9 +60,9 @@ type RedirectConfig struct { // CookieConfig is a struct that holds the cookie configuration for the redirect. type CookieConfig struct { Name string + SameSite string HTTPOnly bool Secure bool - SameSite string } // AcquireRedirect return default Redirect reference from the redirect pool diff --git a/redirect_test.go b/redirect_test.go index 871628c7..5ba6b345 100644 --- a/redirect_test.go +++ b/redirect_test.go @@ -244,8 +244,8 @@ func Test_Redirect_Route_WithFlashMessages_RedirectConfig(t *testing.T) { tests := []struct { name string - cookieConfig CookieConfig expectedValue string + cookieConfig CookieConfig }{ { name: "Default RedirectConfig",