mirror of https://github.com/gofiber/fiber.git
Align structs
parent
d1865491b6
commit
7ae39c4d14
|
@ -60,9 +60,9 @@ type RedirectConfig struct {
|
||||||
// CookieConfig is a struct that holds the cookie configuration for the redirect.
|
// CookieConfig is a struct that holds the cookie configuration for the redirect.
|
||||||
type CookieConfig struct {
|
type CookieConfig struct {
|
||||||
Name string
|
Name string
|
||||||
|
SameSite string
|
||||||
HTTPOnly bool
|
HTTPOnly bool
|
||||||
Secure bool
|
Secure bool
|
||||||
SameSite string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AcquireRedirect return default Redirect reference from the redirect pool
|
// AcquireRedirect return default Redirect reference from the redirect pool
|
||||||
|
|
|
@ -244,8 +244,8 @@ func Test_Redirect_Route_WithFlashMessages_RedirectConfig(t *testing.T) {
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
cookieConfig CookieConfig
|
|
||||||
expectedValue string
|
expectedValue string
|
||||||
|
cookieConfig CookieConfig
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "Default RedirectConfig",
|
name: "Default RedirectConfig",
|
||||||
|
|
Loading…
Reference in New Issue