return write error

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Upstream-commit: c65de2c0207ac67e5023ada8709490ef4627bd01
Component: engine
This commit is contained in:
Victor Vieux
2014-05-02 22:03:59 +00:00
parent 16cdcfd13d
commit 18e1876580
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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