mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 12:54:24 +02:00
fix cache bug
This commit is contained in:
parent
7c5831d293
commit
a67b068a16
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ type writeCacheReader struct {
|
|||
|
||||
func (t *writeCacheReader) Read(p []byte) (n int, err error) {
|
||||
n, err = t.originalReader.Read(p)
|
||||
if err != nil {
|
||||
if err != nil && err != io.EOF {
|
||||
log.Trace().Err(err).Msgf("[cache] original reader for %q has returned an error", t.cacheKey)
|
||||
t.hasError = true
|
||||
} else if n > 0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue