mirror of
https://github.com/containers/podman.git
synced 2025-06-18 15:39:08 +08:00
fix: Docker API compatible bool deserialization
In Docker anything but "", "0", "no", "false", "none" (ignoring case) is considered to be true. Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
@ -90,6 +90,7 @@ func newServer(runtime *libpod.Runtime, listener net.Listener, opts entities.Ser
|
||||
|
||||
server.BaseContext = func(l net.Listener) context.Context {
|
||||
ctx := context.WithValue(context.Background(), types.DecoderKey, handlers.NewAPIDecoder())
|
||||
ctx = context.WithValue(ctx, types.CompatDecoderKey, handlers.NewCompatAPIDecoder())
|
||||
ctx = context.WithValue(ctx, types.RuntimeKey, runtime)
|
||||
ctx = context.WithValue(ctx, types.IdleTrackerKey, tracker)
|
||||
return ctx
|
||||
|
Reference in New Issue
Block a user