mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-08-03 19:36:43 +08:00
record access_log
This commit is contained in:
@@ -36,6 +36,9 @@ func (h *S3Handler) sendS3Error(w http.ResponseWriter, code string, message stri
|
||||
RequestID: fmt.Sprintf("%d", time.Now().UnixNano()),
|
||||
}
|
||||
|
||||
w.Header().Set("X-Amz-Error-Code", code)
|
||||
w.Header().Set("X-Amz-Error-Message", message)
|
||||
|
||||
statusCode := http.StatusBadRequest
|
||||
switch code {
|
||||
case "NoSuchBucket", "NoSuchKey":
|
||||
|
||||
Reference in New Issue
Block a user