mirror of
https://github.com/moby/moby.git
synced 2026-07-10 08:39:25 +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>