moby/runconfig
Cory Snider 4d924c35f7 api/server: allow empty body for POST /commit again
The error returned by DecodeConfig was changed in
b6d58d749c and caused this to regress.
Allow empty request bodies for this endpoint once again.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 967c7bc5d3)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-05-18 16:06:57 -04:00
..
fixtures Move the runconfig.Parse() function into the runconfig/opts package. 2016-01-04 12:06:29 -05:00
opts runconfig/opts: use strings.Cut() 2022-12-21 11:09:03 +01:00
config.go api/server: allow empty body for POST /commit again 2023-05-18 16:06:57 -04:00
config_test.go runconfig, oci, image, layer, distribution: fix empty-lines (revive) 2022-09-28 01:58:52 +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 api/server: allow empty body for POST /commit again 2023-05-18 16:06:57 -04:00
hostconfig.go runconfig: ContainerDecoder(): fix handling of invalid JSON 2022-04-11 21:44:45 +02:00
hostconfig_test.go hostconfig: move unit tests to api/types/container 2022-12-27 22:31:37 +01: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