Make CopyEscapable consistent with Copy and return nil in case of success instead of io.EOF

This commit is contained in:
Guillaume J. Charmes 2013-11-28 16:57:51 -08:00
parent ad43d88af5
commit 77c94175bd
No known key found for this signature in database
GPG key ID: B33E4642CB6E3FF3

View file

@ -543,7 +543,7 @@ func CopyEscapable(dst io.Writer, src io.ReadCloser) (written int64, err error)
if err := src.Close(); err != nil {
return 0, err
}
return 0, io.EOF
return 0, nil
}
}
// ---- End of docker