mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 12:41:42 +00:00
return write error
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
@@ -978,8 +978,8 @@ func writeCorsHeaders(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func ping(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
||||
w.Write([]byte{'O', 'K'})
|
||||
return nil
|
||||
_, err := w.Write([]byte{'O', 'K'})
|
||||
return err
|
||||
}
|
||||
|
||||
func makeHttpHandler(eng *engine.Engine, logging bool, localMethod string, localRoute string, handlerFunc HttpApiFunc, enableCors bool, dockerVersion version.Version) http.HandlerFunc {
|
||||
|
||||
@@ -1181,6 +1181,7 @@ Ping the docker server
|
||||
Status Codes:
|
||||
|
||||
- **200** - no error
|
||||
- **500** - server error
|
||||
|
||||
### Create a new image from a container's changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user