mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Don't append empty slices in the unfragmented path
Signed-off-by: Neil Twigg <neil@nats.io>
This commit is contained in:
@@ -1340,7 +1340,9 @@ func (c *client) wsCollapsePtoNB() (net.Buffers, int64) {
|
|||||||
if mask {
|
if mask {
|
||||||
wsMaskBuf(key, p)
|
wsMaskBuf(key, p)
|
||||||
}
|
}
|
||||||
bufs = append(bufs, h, p)
|
if ol > 0 {
|
||||||
|
bufs = append(bufs, h, p)
|
||||||
|
}
|
||||||
csz = len(h) + ol
|
csz = len(h) + ol
|
||||||
}
|
}
|
||||||
// Add to pb the compressed data size (including headers), but
|
// Add to pb the compressed data size (including headers), but
|
||||||
|
|||||||
Reference in New Issue
Block a user