fix(agentic): use typed EOF handling
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
791fc1a3a1
commit
44321aab25
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ package agentic
|
|||
import (
|
||||
"bufio"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
|
|
@ -946,7 +947,7 @@ func readFleetEventBody(body interface{ Read([]byte) (int, error) }) (string, er
|
|||
}
|
||||
}
|
||||
|
||||
if err != nil && err.Error() == "EOF" {
|
||||
if err == io.EOF {
|
||||
if len(rawLines) > 0 {
|
||||
return core.Join("\n", rawLines...), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue