Merge remote-tracking branch 'origin/feat/client-events' into feat/hardening

This commit is contained in:
Tomas Dvorak committed 2026-09-24 23:12:45 +02:00
commit 8ff8a5fb26
1 file changed
+2 -2
+2 -2
View File
@@ -57,14 +57,14 @@ func (f *fakeS3) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
out.WriteString(`</ListBucketResult>`) out.WriteString(`</ListBucketResult>`)
w.Header().Set("Content-Type", "application/xml") w.Header().Set("Content-Type", "application/xml")
w.Write([]byte(out.String())) _, _ = w.Write([]byte(out.String()))
case r.Method == http.MethodGet: case r.Method == http.MethodGet:
body, ok := f.objects[key] body, ok := f.objects[key]
if !ok { if !ok {
http.Error(w, "no such key", http.StatusNotFound) http.Error(w, "no such key", http.StatusNotFound)
return return
} }
w.Write(body) _, _ = w.Write(body)
case r.Method == http.MethodDelete: case r.Method == http.MethodDelete:
delete(f.objects, key) delete(f.objects, key)
w.WriteHeader(http.StatusNoContent) w.WriteHeader(http.StatusNoContent)