mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
keep receiver name
This commit is contained in:
parent
880d1af665
commit
c845f05baa
1 changed files with 3 additions and 3 deletions
|
|
@ -1551,10 +1551,10 @@ type bodyReadCloser struct {
|
|||
body io.ReadCloser
|
||||
}
|
||||
|
||||
func (b bodyReadCloser) Close() error {
|
||||
func (brc bodyReadCloser) Close() error {
|
||||
// For fully-buffered bodies, body is nil, so Close is a no-op.
|
||||
if b.body != nil {
|
||||
return b.body.Close()
|
||||
if brc.body != nil {
|
||||
return brc.body.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue