mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Implement similar logic as is used in httputils.ReadJSON(). Before this patch, endpoints using the ContainerDecoder would incorrectly return a 500 (internal server error) status. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>