From 7bda005754a2e148e746cc6ac5407ca1fcc89bac Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Thu, 7 Nov 2024 10:56:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=99=E3=81=A7=E3=81=AB=20append=20?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E3=81=9F=E3=82=81=E5=89=8A?= =?UTF-8?q?=E9=99=A4=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handler.go b/handler.go index ce96dd4..7ac6070 100644 --- a/handler.go +++ b/handler.go @@ -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 }