mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 12:43:58 +08:00
use request bodu
This commit is contained in:
parent
460c3e5d2a
commit
feac4b0bef
|
@ -99,7 +99,7 @@ func (h *Handler) handleUpgradeResponse(logger *zap.Logger, wg *sync.WaitGroup,
|
|||
h.logger.Error("failed to flush http2 websocket response", zap.Error(flushErr))
|
||||
return
|
||||
}
|
||||
conn = h2ReadWriteCloser{res.Body, rw}
|
||||
conn = h2ReadWriteCloser{req.Body, rw}
|
||||
// bufio is not needed, use minimal buffer
|
||||
brw = bufio.NewReadWriter(bufio.NewReaderSize(conn, 1), bufio.NewWriterSize(conn, 1))
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user