summaryrefslogtreecommitdiffstats
path: root/libgo/go/net/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/parse.go')
-rw-r--r--libgo/go/net/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/parse.go b/libgo/go/net/parse.go
index 7c87b42f6d9..6056de248e0 100644
--- a/libgo/go/net/parse.go
+++ b/libgo/go/net/parse.go
@@ -54,7 +54,7 @@ func (f *file) readLine() (s string, ok bool) {
if n >= 0 {
f.data = f.data[0 : ln+n]
}
- if err == io.EOF {
+ if err == io.EOF || err == io.ErrUnexpectedEOF {
f.atEOF = true
}
}
OpenPOWER on IntegriCloud