fix usestdlibvars

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-05-15 17:54:23 +02:00
parent 2c5f8c51c5
commit 205ba05feb
19 changed files with 65 additions and 50 deletions

View File

@@ -107,7 +107,7 @@ func newVolumePlugin(t *testing.T, name string) *volumePlugin {
send := func(w http.ResponseWriter, data interface{}) {
switch d := data.(type) {
case error:
http.Error(w, d.Error(), 500)
http.Error(w, d.Error(), http.StatusInternalServerError)
case string:
w.Header().Set("Content-Type", plugins.VersionMimetype)
_, _ = fmt.Fprintln(w, d)