From 53c384754397824cff1ebd6d84f0cd133e27ce14 Mon Sep 17 00:00:00 2001 From: Lqlsoftware Date: Wed, 25 Apr 2018 13:13:37 +0800 Subject: [PATCH] fix --- src/gopcap/http/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gopcap/http/handler.go b/src/gopcap/http/handler.go index 8324641..1189272 100644 --- a/src/gopcap/http/handler.go +++ b/src/gopcap/http/handler.go @@ -5,11 +5,11 @@ import ( ) // HTTP包处理 -func Handler(rawPacket []byte) (rep ResponseByte, isKeepAlive bool) { +func Handler(rawPacket []byte) (rep []byte, isKeepAlive bool) { // 转换TCP交付的包为HTTP-REQUEST request,err := parserRequest(rawPacket) if err != nil { - return ResponseByte{[]byte{}, nil}, false + return []byte{}, false } // 判断是否keep-alive