Skip to content

Commit

Permalink
Fix #14. Updated go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrr committed Nov 23, 2020
1 parent dc27611 commit 46a81bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ func (fr *Frame) setLength(n int) {

// Mask performs the masking of the current payload
func (fr *Frame) Mask() {
fr.op[1] |= maskBit
readMask(fr.mask)
if len(fr.b) > 0 {
fr.op[1] |= maskBit
readMask(fr.mask)
mask(fr.mask, fr.b)
}
}
Expand Down
7 changes: 6 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ module github.com/dgrr/fastws

go 1.14

require github.com/valyala/fasthttp v1.12.0
require (
github.com/gobwas/ws v1.0.4
github.com/gorilla/websocket v1.4.2
github.com/valyala/fasthttp v1.12.0
nhooyr.io/websocket v1.8.6
)

0 comments on commit 46a81bc

Please sign in to comment.