Browse Source

simplify

pull/7523/head
chrislu 2 weeks ago
parent
commit
e1de64e0c9
  1. 3
      weed/server/filer_server_handlers_write_autochunk.go

3
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 // Note: S3 API now sets SeaweedFSExpiresS3 directly in metadata, not via header
// TTL handling is done based on metadata, not request headers // 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 { if err != nil {
return nil, nil, err return nil, nil, err

Loading…
Cancel
Save