luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

Fixes WebSocket chunk length check #218

Closed SinisterRectus closed 7 years ago

SinisterRectus commented 7 years ago

In #211, I replaced each #chuck with length. Apparently this line should have remained the same. The only reason why length can be used in the other two checks is because length < n is equivalent #chunk < start + n. Sorry for the confusion.

creationix commented 7 years ago

Sorry I didn't catch this in review.