Skip to content

Commit 2f96b10

Browse files
committed
Update fcgi ReadFull issue for -weekly
1 parent f16f5d2 commit 2f96b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fcgi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (s *Server) handleFcgiConnection(fd io.ReadWriteCloser) {
247247
content := make([]byte, h.ContentLength)
248248
_, err = io.ReadFull(br, content)
249249
if err != nil {
250-
s.Logger.Println("FCGI Error", err.String())
250+
s.Logger.Println("FCGI Error", err.Error())
251251
break
252252
}
253253

@@ -256,7 +256,7 @@ func (s *Server) handleFcgiConnection(fd io.ReadWriteCloser) {
256256
padding := make([]byte, h.PaddingLength)
257257
_, err = io.ReadFull(br, padding)
258258
if err != nil {
259-
s.Logger.Println("FCGI Error", err.String())
259+
s.Logger.Println("FCGI Error", err.Error())
260260
break
261261
}
262262
}

0 commit comments

Comments
 (0)