Skip to content

Commit bbe7acf

Browse files
committed
fix amount of expected headers for client response
1 parent fdbd59e commit bbe7acf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/response_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import (
1111

1212
"github.com/gofiber/fiber/v3/internal/tlstest"
1313

14-
"github.com/gofiber/fiber/v3"
1514
"github.com/stretchr/testify/assert"
1615
"github.com/stretchr/testify/require"
16+
17+
"github.com/gofiber/fiber/v3"
1718
)
1819

1920
func Test_Response_Status(t *testing.T) {
@@ -232,7 +233,7 @@ func Test_Response_Headers(t *testing.T) {
232233
require.Contains(t, headers["Foo"], "bar2")
233234
require.Contains(t, headers["Foo2"], "bar")
234235

235-
require.Len(t, headers, 3) // Foo + Foo2 + Date
236+
require.Len(t, headers, 5) // Foo + Foo2 + Date + Content-Length + Content-Type
236237

237238
resp.Close()
238239
}

0 commit comments

Comments
 (0)