net/http/fcgi: handle error returned by w.Close() in writePairs

Change-Id: Ibb0b9a14d13347ccd33a77e98f485fdde2b99c7c
GitHub-Last-Rev: a2364f5ec4
GitHub-Pull-Request: golang/go#79201
Reviewed-on: https://go-review.googlesource.com/c/go/+/774160
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Weixie Cui 2026-05-05 11:42:59 +00:00 committed by Gopher Robot
parent 880ef11ecf
commit 7d2eb15103

View file

@ -189,8 +189,7 @@ func (c *conn) writePairs(recType recType, reqId uint16, pairs map[string]string
return err
}
}
w.Close()
return nil
return w.Close()
}
func readSize(s []byte) (uint32, int) {