1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

return write error

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux 2014-05-02 22:03:59 +00:00
parent 3c422fe5bf
commit c65de2c020
2 changed files with 3 additions and 2 deletions

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 {

View file

@ -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