fix application bug

This commit is contained in:
Jeff
2019-05-13 11:19:18 +08:00
committed by zryfish
parent 996d6fe4c5
commit 5462f51e65
717 changed files with 87703 additions and 53426 deletions

View File

@@ -0,0 +1,18 @@
package h2quic
import (
"io"
quic "github.com/lucas-clemente/quic-go"
)
type responseBody struct {
quic.Stream
}
var _ io.ReadCloser = &responseBody{}
func (rb *responseBody) Close() error {
rb.Stream.CancelRead(0)
return nil
}