Trying to send large response causes `scanner err: bufio.Scanner: token too long`
shahruk10 opened this issue · 0 comments
shahruk10 commented
When trying to marshal a large response body, the bufio.Scanner
returns token too long
error here.
WARN[0124] scanner err: bufio.Scanner: token too long
It would be good to have an option to set a larger buffer size via Scanner.Buffer() to allow reading in larger tokens.