Wrap HTTP/2 errors in v2rayhttp server writes

This commit is contained in:
世界
2026-11-25 21:25:12 +08:00
parent b126cbe02c
commit 46acf61419
+1 -1
View File
@@ -236,7 +236,7 @@ type ServerHTTPConn struct {
}
func (c *ServerHTTPConn) Write(b []byte) (n int, err error) {
n, err = c.writer.Write(b)
n, err = c.HTTP2Conn.Write(b)
if err == nil {
c.Flusher.Flush()
}