From b7e34016d49a74a121ae563e71a335c6679d9008 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 2 Apr 2022 11:01:04 +0800 Subject: [PATCH] fix error response in case of wrong expire time format --- weed/s3api/s3api_object_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index 4d6c18a78..190045517 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -63,7 +63,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.ErrInvalidDigest) + s3err.WriteErrorResponse(w, r, s3err.ErrMalformedExpires) return } }