mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
make the responseWriter hijackable
This commit is contained in:
parent
a983db0301
commit
ff6313fdb3
4 changed files with 13 additions and 6 deletions
|
@ -25,7 +25,7 @@ var _ = Describe("Response Writer", func() {
|
|||
strBuf = &bytes.Buffer{}
|
||||
str := mockquic.NewMockStream(mockCtrl)
|
||||
str.EXPECT().Write(gomock.Any()).DoAndReturn(strBuf.Write).AnyTimes()
|
||||
rw = newResponseWriter(str, utils.DefaultLogger)
|
||||
rw = newResponseWriter(str, nil, utils.DefaultLogger)
|
||||
})
|
||||
|
||||
decodeHeader := func(str io.Reader) map[string][]string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue