mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
新增http
This commit is contained in:
@@ -97,7 +97,7 @@ func (p *MsgParser) Read(conn *TCPConn) ([]byte, error) {
|
||||
} else if msgLen < p.minMsgLen {
|
||||
return nil, errors.New("message too short")
|
||||
}
|
||||
|
||||
|
||||
msgLen -= 2
|
||||
// data
|
||||
msgData := make([]byte, msgLen)
|
||||
|
||||
Reference in New Issue
Block a user