Merge pull request #814 from aaronlehmann/test-response-writer
Make testResponseWriter's CloseNotify return an actual channel instead of nil
This commit is contained in:
commit
c4e553a655
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ func (trw *testResponseWriter) Header() http.Header {
|
|||
// http.CloseNotifier interface, which WithResponseWriter expects to be
|
||||
// implemented.
|
||||
func (trw *testResponseWriter) CloseNotify() <-chan bool {
|
||||
return nil
|
||||
return make(chan bool)
|
||||
}
|
||||
|
||||
func (trw *testResponseWriter) Write(p []byte) (n int, err error) {
|
||||
|
|
Loading…
Reference in a new issue