Merge pull request #8 from ferdzo/fix/bucket-creation-status201-to-200ok

Changed 201 Created to 200 OK when creating bucket
This commit is contained in:
2026-03-12 00:29:05 +01:00
committed by GitHub

View File

@@ -488,7 +488,7 @@ func (h *Handler) handlePutBucket(w http.ResponseWriter, r *http.Request) {
writeMappedS3Error(w, r, err)
return
}
w.WriteHeader(http.StatusCreated)
w.WriteHeader(http.StatusOK)
}
func (h *Handler) handleDeleteBucket(w http.ResponseWriter, r *http.Request) {