Skip to content

Commit df776d4

Browse files
committed
note
1 parent 40c87b9 commit df776d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proto.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,9 @@ func validateFrame(frame *Frame) error {
394394
if payloadLen == 0 {
395395
return nil
396396
}
397-
// if a close frame has a payload, the first two bytes must encode a
397+
// if a close frame has a payload, the first two bytes MUST encode a
398398
// closing status code.
399+
// https://datatracker.ietf.org/doc/html/rfc6455#section-5.5.1
399400
if payloadLen == 1 {
400401
return ErrClosePayloadInvalid
401402
}

0 commit comments

Comments
 (0)