Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lqlsoftware committed Apr 25, 2018
1 parent 853048a commit 53c3847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gopcap/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53c3847

Please sign in to comment.