mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
737e8c6ab8
The endpoint was silently ignoring invalid values for the "condition" parameter. This patch now returns a 400 status if an unknown, non-empty "condition" is passed. With this patch: curl --unix-socket /var/run/docker.sock -XPOST 'http://localhost/v1.41/containers/foo/wait?condition=foobar' {"message":"invalid condition: \"foobar\""} Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
backend/build | ||
httputils | ||
middleware | ||
router | ||
middleware.go | ||
server.go | ||
server_test.go |