1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig
Sebastiaan van Stijn b6d58d749c
runconfig: ContainerDecoder(): fix handling of invalid JSON
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>
2022-04-11 21:44:45 +02:00
..
fixtures
opts Add canonical import comment 2018-02-05 16:51:57 -05:00
config.go runconfig: ContainerDecoder(): fix handling of invalid JSON 2022-04-11 21:44:45 +02:00
config_test.go runconfig: ContainerDecoder(): fix handling of invalid JSON 2022-04-11 21:44:45 +02:00
config_unix.go Merge pull request #42725 from thaJeztah/runconfig_simplify 2021-10-27 20:15:14 +09:00
config_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
hostconfig.go runconfig: ContainerDecoder(): fix handling of invalid JSON 2022-04-11 21:44:45 +02:00
hostconfig_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
hostconfig_unix.go Merge pull request #42725 from thaJeztah/runconfig_simplify 2021-10-27 20:15:14 +09:00
hostconfig_windows.go runconfig: decodeContainerConfig() return early if there's no HostConfig 2021-08-09 11:17:04 +02:00
hostconfig_windows_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00