Skip to content

Commit 73045ef

Browse files
author
miktwon
committed
Fix empty body bug
1 parent 8fb024d commit 73045ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/phpfpm/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ func GetStats(listen, statusPath string) (*Status, error) {
4444
"SCRIPT_NAME": statusPath,
4545
}
4646
resp, err := fcgi.Get(env)
47-
if err != nil && err != io.EOF {
47+
if err != nil {
4848
return nil, err
4949
}
5050
defer tryClose(resp.Body)
5151

5252
content, err := ioutil.ReadAll(resp.Body)
53-
if err != nil && err != io.EOF {
53+
if err != nil {
5454
return nil, err
5555
}
5656
s := Status{}

0 commit comments

Comments
 (0)