Skip to content

Commit 46988ad

Browse files
authored
Fix Issue #384 (#385)
Signed-off-by: oEscal <[email protected]>
1 parent 18a1897 commit 46988ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/qpoption/qpoption.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ func (p *GateQPOption) ProcessAnnotations() bool {
8585
p.config = make(map[string]string)
8686

8787
scanner := bufio.NewScanner(file)
88+
89+
// To support large tokens
90+
scannerBuf := make([]byte, 0, 64*1024)
91+
scanner.Buffer(scannerBuf, 1024*1024)
92+
8893
for scanner.Scan() {
8994
txt := scanner.Text()
9095
txt = strings.ToLower(txt)

0 commit comments

Comments
 (0)