Skip to content

Commit 4edfe2f

Browse files
authored
Tighten checks in case ResponseHeaders are disabled (#2378)
Test no response headers are set when they are disabled Signed-off-by: Alexander Shopov <[email protected]>
1 parent 32915c0 commit 4edfe2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/encoding/call_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,5 @@ func TestDisabledResponseHeaders(t *testing.T) {
156156
assert.Len(t, call.HeaderNames(), 1)
157157

158158
assert.Error(t, call.WriteResponseHeader("foo", "bar"))
159+
assert.Nil(t, icall.resHeaders)
159160
}

0 commit comments

Comments
 (0)