aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket/frame.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/websocket/frame.go')
-rw-r--r--lib/websocket/frame.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/websocket/frame.go b/lib/websocket/frame.go
index b3003aaa..235f166b 100644
--- a/lib/websocket/frame.go
+++ b/lib/websocket/frame.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
@@ -296,7 +296,7 @@ func (f *Frame) pack() (out []byte) {
out[x] = f.maskKey[3]
x++
- for y = 0; y < payloadSize; y++ {
+ for y = range payloadSize {
out[x] = f.payload[y] ^ f.maskKey[y%4]
x++
}