Merge 4ea7d51deac965727d145929eb0e8f812fb334f8 into c3d5a28ed6d3849da820195b6774d212bcc038a9

This commit is contained in:
Julio Guerra 2025-11-08 10:01:18 +01:00 committed by GitHub
commit a75f40df90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,6 +84,10 @@ func TestResponseWriterWriteHeadersNow(t *testing.T) {
writer.size = 10
w.WriteHeaderNow()
assert.Equal(t, 10, w.Size())
w.WriteHeader(http.StatusOK)
assert.Equal(t, http.StatusMultipleChoices, w.Status())
assert.Equal(t, http.StatusMultipleChoices, testWriter.Code)
}
func TestResponseWriterWrite(t *testing.T) {