use request bodu

This commit is contained in:
WeidiDeng 2024-09-10 17:49:55 +08:00
parent 460c3e5d2a
commit feac4b0bef
No known key found for this signature in database
GPG Key ID: 25F87CE1741EC7CD

View File

@ -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 {