slapper icon indicating copy to clipboard operation
slapper copied to clipboard

Workaround for large body

Open debugger-zhang opened this issue 11 months ago • 0 comments

Please note this tool does not works as-is for bodies larger than 64KB. To fix it, add the following lines after https://github.com/ikruglov/slapper/blob/master/slapper.go#L135:

	buf := make([]byte, 0, 64*1024)
	scanner.Buffer(buf, 1024*1024)

The second number should be replaced with the maximum length of body you want to use.

debugger-zhang avatar Jan 22 '25 07:01 debugger-zhang