From e1de64e0c97c0761d28ff9474c98c0361cc63f67 Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 21 Nov 2025 12:19:39 -0800 Subject: [PATCH] simplify --- weed/server/filer_server_handlers_write_autochunk.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index 0470b1b8d..8912bb073 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -137,9 +137,8 @@ func (fs *FilerServer) doPutAutoChunk(ctx context.Context, w http.ResponseWriter } // Note: S3 API now sets SeaweedFSExpiresS3 directly in metadata, not via header // TTL handling is done based on metadata, not request headers - soMaybeWithOutTTL := so - fileChunks, md5Hash, chunkOffset, err, smallContent := fs.uploadRequestToChunks(ctx, w, r, r.Body, chunkSize, fileName, contentType, contentLength, soMaybeWithOutTTL) + fileChunks, md5Hash, chunkOffset, err, smallContent := fs.uploadRequestToChunks(ctx, w, r, r.Body, chunkSize, fileName, contentType, contentLength, so) if err != nil { return nil, nil, err