mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix usestdlibvars
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user