mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: readme in shared folder
This commit is contained in:
@@ -243,6 +243,9 @@ func (instance NopRSCloser) SetContentLength(size int64) {
|
||||
|
||||
// Read 实现 NopRSCloser reader
|
||||
func (instance NopRSCloser) Read(p []byte) (n int, err error) {
|
||||
if instance.status.IgnoreFirst && len(p) == 512 {
|
||||
return 0, io.EOF
|
||||
}
|
||||
return instance.body.Read(p)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user