From: 2weiEmu Date: Fri, 19 Jun 2026 14:11:38 +0000 (+0200) Subject: fixed: some of the writeheaders warnings X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=2caa170bf00f56764617552cfaf7278791f1893d;p=binbsis50-sm.git fixed: some of the writeheaders warnings --- diff --git a/pkg/dbhandling/filesapi.go b/pkg/dbhandling/filesapi.go index 869b9f7..875e43c 100644 --- a/pkg/dbhandling/filesapi.go +++ b/pkg/dbhandling/filesapi.go @@ -30,7 +30,6 @@ func (dbw *DBWrapper) FilesGet(w http.ResponseWriter, r *http.Request) { } w.Write(bytes) - w.WriteHeader(http.StatusOK) } /** TEST diff --git a/pkg/dbhandling/roomsapi.go b/pkg/dbhandling/roomsapi.go index a4a9a52..93911bd 100644 --- a/pkg/dbhandling/roomsapi.go +++ b/pkg/dbhandling/roomsapi.go @@ -40,7 +40,6 @@ func (dbw *DBWrapper) RoomsGet(w http.ResponseWriter, r *http.Request) { } w.Write(b) - w.WriteHeader(http.StatusOK) } /** @@ -63,7 +62,6 @@ func (dbw *DBWrapper) RoomsGetByName(w http.ResponseWriter, r *http.Request) { } w.Write(b) - w.WriteHeader(http.StatusOK) } diff --git a/pkg/dbhandling/songsapi.go b/pkg/dbhandling/songsapi.go index 5489e0f..068b2f2 100644 --- a/pkg/dbhandling/songsapi.go +++ b/pkg/dbhandling/songsapi.go @@ -80,7 +80,6 @@ func (dbw *DBWrapper) SongsGet(w http.ResponseWriter, r *http.Request) { } w.Write(b) - w.WriteHeader(http.StatusOK) } diff --git a/songmanager b/songmanager index 0a59cde..2f8d090 100755 Binary files a/songmanager and b/songmanager differ diff --git a/testing/songs/AFROJACK~WRABEL_Ten+Feet+Tall.m4a b/testing/songs/AFROJACK~WRABEL_Ten+Feet+Tal.m4a similarity index 100% rename from testing/songs/AFROJACK~WRABEL_Ten+Feet+Tall.m4a rename to testing/songs/AFROJACK~WRABEL_Ten+Feet+Tal.m4a