Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
| ... | ... |
@@ -978,8 +978,8 @@ func writeCorsHeaders(w http.ResponseWriter, r *http.Request) {
|
| 978 | 978 |
} |
| 979 | 979 |
|
| 980 | 980 |
func ping(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
| 981 |
- w.Write([]byte{'O', 'K'})
|
|
| 982 |
- return nil |
|
| 981 |
+ _, err := w.Write([]byte{'O', 'K'})
|
|
| 982 |
+ return err |
|
| 983 | 983 |
} |
| 984 | 984 |
|
| 985 | 985 |
func makeHttpHandler(eng *engine.Engine, logging bool, localMethod string, localRoute string, handlerFunc HttpApiFunc, enableCors bool, dockerVersion version.Version) http.HandlerFunc {
|