Skip to content

Commit

Permalink
すでに append しているため削除する
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Nov 7, 2024
1 parent e0931d4 commit 7bda005
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ func readPacketWithHeader(reader io.Reader) (io.Reader, error) {

// 次の frame が含まれている場合
if length > (20 + payloadLength) {
payload = append(payload, p[:payloadLength]...)
if _, err := w.Write(payload); err != nil {
if _, err := w.Write(p[:payloadLength]); err != nil {
// TODO: ログ出力
return
}
Expand Down

0 comments on commit 7bda005

Please sign in to comment.