You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// AvailableBuffer returns an empty buffer with b.Available() capacity.// This buffer is intended to be appended to and// passed to an immediately succeeding [Writer.Write] call.// The buffer is only valid until the next write operation on b.func (b*Writer) AvailableBuffer() []byte {
returnb.buf[b.n:][:0]
}
Is there an existing issue for this?
Current Behavior
Description
len(buf) must equal to 0 for AvailableBuffer()
i think the len(buf) may switch to cap(buf) ?
https://github.com/gorilla/websocket/blob/main/server.go#L208
i commit a fix pr: #972
Expected Behavior
No response
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: