mirror of
https://github.com/containers/podman.git
synced 2025-12-10 15:47:46 +08:00
/_ping handler: return OSType http header
The docker client expects to read the OSType header from the `/_ping` response in order to determine the OS type of the server, for example, when running `docker run --device=/dev/fuse ...` https://github.com/moby/moby/blob/master/client/ping.go#L57 Signed-off-by: chnrxn <cohawk@yahoo.com>
This commit is contained in:
@@ -11,6 +11,7 @@ t GET /libpod/_ping 200 OK
|
||||
t HEAD /libpod/_ping 200
|
||||
|
||||
t GET _ping 200 OK
|
||||
like "$(<$WORKDIR/curl.headers.out)" $'.*\nOstype: ' "#19767 - undocumented part of docker API"
|
||||
t HEAD _ping 200
|
||||
t GET libpod/_ping 200 OK
|
||||
t HEAD libpod/_ping 200
|
||||
|
||||
Reference in New Issue
Block a user