mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -16,6 +16,11 @@ func prettifyHTTP(p []byte) []byte {
|
||||
body := p[headSize:]
|
||||
|
||||
headersPos := proto.MIMEHeadersEndPos(body)
|
||||
|
||||
if headersPos < 5 || headersPos > len(body) {
|
||||
return p
|
||||
}
|
||||
|
||||
headers := body[:headersPos]
|
||||
content := body[headersPos:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user