SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Fix errinfo (#3893)
Guo Lei97edb40275d6
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.goindex 2fc0111a4f..8c4e3f0e87 100644--- a/weed/s3api/s3api_object_handlers.go+++ b/weed/s3api/s3api_object_handlers.go@@ -6,16 +6,17 @@ import ("encoding/json""encoding/xml""fmt"- "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"- "github.com/seaweedfs/seaweedfs/weed/security"- "github.com/seaweedfs/seaweedfs/weed/util/mem"- "golang.org/x/exp/slices""io""net/http""net/url""strings""time"+ "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"+ "github.com/seaweedfs/seaweedfs/weed/security"+ "github.com/seaweedfs/seaweedfs/weed/util/mem"+ "golang.org/x/exp/slices"+"github.com/pquerna/cachecontrol/cacheobject""github.com/seaweedfs/seaweedfs/weed/filer"@@ -63,7 +64,7 @@ func (s3a *S3ApiServer) PutObjectHandler(w http.ResponseWriter, r *http.Request)if r.Header.Get("Expires") != "" {if _, err = time.Parse(http.TimeFormat, r.Header.Get("Expires")); err != nil {- s3err.WriteErrorResponse(w, r, s3err.ErrMalformedExpires)+ s3err.WriteErrorResponse(w, r, s3err.ErrMalformedDate)return}}