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
1 changed files with 1 additions and 1 deletions

2
api.go
View File

@ -1054,7 +1054,7 @@ func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
}
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
}