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

Fixes Issue# 3450

Docker-DCO-1.1-Signed-off-by: Gopikannan Venugopalsamy <gopikannan.venugopalsamy@gmail.com> (github: vgeta)
This commit is contained in:
vgeta 2014-01-19 17:48:54 -08:00
parent c23b15b9d8
commit e45b87031c

2
api.go
View file

@ -1054,7 +1054,7 @@ func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
} }
if version == 0 || version > APIVERSION { if version == 0 || version > APIVERSION {
w.WriteHeader(http.StatusNotFound) http.Error(w, fmt.Errorf("client and server don't have same version (client : %g, server: %g)", version, APIVERSION).Error(), http.StatusNotFound)
return return
} }