all repos — homestead @ 6148b0c03ac228c1aa85b795fca6a33a0ea1b0fa

Code for my website

storage: allow any read-seekable data as encoded content

Alan Pearce
commit

6148b0c03ac228c1aa85b795fca6a33a0ea1b0fa

parent

64abf5b1a11060b0a559e284a471d7f3a9f0adf2

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M internal/storage/files/file.gointernal/storage/files/file.go
@@ -46,8 +46,8 @@ Path: path,
ContentType: mime.TypeByExtension(filepath.Ext(filename)), LastModified: stat.ModTime(), Etag: etag, - Encodings: map[string]*buffer.Buffer{ - "identity": buf, + Encodings: map[string]io.ReadSeeker{ + "identity": f, }, }