mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
fix proto.Path
This commit is contained in:
+1
-1
@@ -346,7 +346,7 @@ func Path(payload []byte) []byte {
|
||||
eol := bytes.IndexByte(payload[start:], '\r')
|
||||
end := bytes.IndexByte(payload[start:], ' ')
|
||||
|
||||
if eol < end {
|
||||
if eol > 0 && eol < end {
|
||||
return payload[start : start + eol]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user