1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/router
Sebastiaan van Stijn a9d20916c3
swarm: fix API version detection
While the docker cli may be sending a "version" header, this header
is not part of the API, or at least should not determin what API
version is used.

This code was added in c0afd9c873, to
adjust the handling of requests when an older version of the API was
used, but because the code relied on the "version" header set by the
CLI, it didn't work with other clients (e.g. when using cURL to make
an API request).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-14 21:05:49 +02:00
..
build api/server: build: refactor for better readability 2019-12-04 16:19:01 +01:00
checkpoint
container api: normalize comment formatting 2019-11-27 15:37:30 +01:00
debug
distribution goimports: fix imports 2019-09-18 12:56:54 +02:00
grpc api: add undocumented /grpc endpoint to talk to GRPC services 2019-04-02 19:57:59 +00:00
image API: remove deprecated "filter" parameter for API v1.41 and up 2020-02-10 17:21:01 +01:00
network Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
plugin api: normalize comment formatting 2019-11-27 15:37:30 +01:00
session
swarm swarm: fix API version detection 2020-04-14 21:05:49 +02:00
system Merge pull request #39816 from tao12345666333/rm-systeminfo-error-handler 2020-03-13 01:59:13 +09:00
volume Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
experimental.go
local.go api/server/router: use consts for HTTP methods 2019-11-26 21:55:29 +01:00
router.go